gba/08-LetsDraw
This repo contains a simple game (yes, very very very simple game) for Game Boy Advance (GBA) in Go, with a basic code organization.
We use:
General
This simple app/game run on Game Boy Advance portable console and run a "Telecran" game.
- With multi directionnal arrows you can draw at left, right, top or bottom
- When you press START button, the draw area is cleaned
Pre-requisites
Install Go in 1.16 version minimum.
Install TinyGo.
Install mGBA emulator.
Run the app (during development)
$ tinygo run -target=gameboy-advance main.go
tinygo:ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected
Result
Build the app
- For mGBA, VisualBoyAdvance emulator or real GBA console:
$ GOFLAGS=-mod=mod tinygo build -o telecran.gba -target=gameboy-advance main.go
Test the app/game
Let's run our app on mGBA emulator:
$ mgba telecran.gba
mGBA Controls
Controls are configurable in the settings menu of mGBA. Many game controllers should be automatically mapped by default.
The default keyboard controls are as follows:
A: X
B: Z
L: A
R: S
Start: Enter
Select: Backspace