make
./build/linux
./build/windows.exe
go run web/server.go
Open 127.0.0.1:8080 in browser
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)
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)toX=0intvplot.basfile
.
├── 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