The API is not yet fixed.
Koebiten is a package for making simple games. Koebiten was heavily influenced by a package called Miniten when development began. Since then, additional features have been inspired by Miniten's foundation, Ebitengine.
For now, koebiten only works on zero-kb02 and macropad-rp2040. It needs some improvements to run in a more general environment.
$ tinygo flash --target ./targets/zero-kb02.json --size short ./games/flappygopher
$ tinygo flash --target gopher-badge --size short ./games/flappygopher
$ tinygo flash --target ./targets/zero-kb02.json --size short ./games/jumpingopher
$ tinygo flash --target gopher-badge --size short ./games/jumpingopher
more info : ./games/jumpingopher
The other games are located under ./games.
Refer to the Makefile for instructions on how to build.
The currently supported hardware is as follows.
- zero-kb02 (--target ./targets/zero-kb02.json)
- gopher-badge
- pybadge / gobadge
- wioterminal
- macropad-rp2040
- gopher-board
When adding new hardware, please refer to #7.
If the hardware you're adding is not a simple, off-the-shelf product like zero-kb02,
you'll need a build tag such as go:build zero_kb02
.
For more details, see #8.
If you specify the koebiten_benchmark
tag, it will display the time taken to render 32 frames every 32 frames in microseconds (us).
If the processing is light enough, the displayed value should be around 1024us.
If this value becomes significantly larger, it indicates that the frame rate is unstable.
$ tinygo flash --target ./targets/zero-kb02.json --size short --tags koebiten_benchmark ./games/flappygopher