This project is a basic micro-gameengine to run lua in the Nintendo Game Boy Advanced, which can be expanded to a custom engine, such as Gly Engine.
there is no sanitization, error handling or observation of resource consumption, all of this takes up precious CPU time, bad code will make the game crash with a black screen. I recommend made a multiplatform game that support desktop especially for testing lua code! |
- i will recommend using the devkitpro/devkitarm container if you do not have devkitpro installed.
git clone https://github.com/gamelly/core-native-gba
- GAME: path to your
game.lua
(can also be an example from the vendor/engine/examples folder) - FPS_MODE 0: loop 60 fps / draw 60 fps
- FPS_MODE 1: loop 60 fps / draw 30 fps
- FPS_MODE 2: loop 30 fps / draw 30 fps
- FPS_MODE 3: loop 20 fps / draw 20 fps
cmake -Bbuild -H. -DGAME=vendor/engine/examples/pong/game.lua -DFPS_MODE=1
make -C build
VisualBoyAdvance build/GBA_Game.gba