Skip to content

esklo/mirea-crossplatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TV PLot (Crossplatofrm)

Build

make

linux

./build/linux

windows

./build/windows.exe

web

go run web/server.go

Open 127.0.0.1:8080 in browser

Bootloader

For bootloader I use qemu with linux kernel. program compiles into initramfs with u-root

Install u-root

go install github.com/u-root/u-root@latest

Install QEMU

Download vmlinuz-linux to project root

chmod +x bootloader.sh

./bootloader.sh

ctrl + alt + 3 (serial port)

Testing

Download vintbas to /game dir

cd game && go test

Since the program uses random, we need to get rid of it

change X=INT(10*RND(1)+1) to X=0 in tvplot.bas file

Structure

.
├── Makefile
├── README.md
├── bootloader.sh
├── build
│   ├── linux
│   └── windows.exe
├── exec -> start game proccess
│   ├── cli.go -> compiles if not web
│   ├── exec.go -> entrypoint
│   └── web.go -> compiles only for web
├── game -> gameport
│   ├── main.go
│   ├── main_test.go
│   ├── tvplot.bas
│   └── vintbas
├── go.mod
├── go.sum
├── init -> entrypoint for bootloader (init – required name by u-root)
│   └── init.go
├── main.go
├── vmlinuz-linux
└── web
    ├── index.html
    ├── main.wasm
    ├── server.go
    └── wasm_exec.js

Demo

YouTube

About

educational project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors