08-LetsDraw

command module
v0.0.0-...-bbbc01c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 9 Imported by: 0

README

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

App

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL