Skip to content

create your own game-engine with just lua for game boy advance

Notifications You must be signed in to change notification settings

gamelly/core-native-gba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core Native GBA

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.

⚠️ Attention
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!

How to build

Clone repo

git clone https://github.com/gamelly/core-native-gba

Configure project

  • 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

Build cartbridge rom .gba

make -C build

Run

VisualBoyAdvance build/GBA_Game.gba