This is a project template for when you want to get started writing a GBA game in C.
The template comes with CMake presets automatically setting up a debug and release build. It will automatically detect your devkitARM installation and set up your compiler toolchain.
The main.c contains a little demo using tonclib (aka libtonc), but it is also very easy to switch to libgba. Using no support library and doing everything from scratch is also possible. Just remove the dependency.
- CMake version 3.25 or newer
- A devkitARM installation
The versions of libgba
and tonclib
which come with devkitARM are fairly old.
Specifically for tonclib
, it makes sense to use the more recent community fork.
As another alternative I want to mention libseven, which aims to "replace existing libraries like libgba or libtonc".