Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple implementation of Pong I wrote for the GameBoy Advance (GBA) as a proof-of-concept in preparation for more-complicated games.

Screenshot of the game

It follows this introduction for the basic approach to developing the code.

Dependencies

Compiling this C code into a GBA module requires the ARM module of devkitPro

Once installed, ensure devkitpro/devkitARM/bin is in your PATH

Compilation

The following commands will turn main.c into a GBA ROM main.gba:

arm-none-eabi-gcc -c main.c -mthumb-interwork -mthumb -O2 -o main.o
arm-none-eabi-gcc main.o -mthumb-interwork -mthumb -specs=gba.specs -o main.elf
arm-none-eabi-objcopy -v -O binary main.elf main.gba
gbafix main.gba

I've compiled these commands into a Makefile. Please note that make clean does not work on Windows.

Running Games

The generated ROM can be loaded onto a GBA cartridge, or run through an emulator. For Windows on x86, I recommend VisualBoyEmulator. For OSx, I recommend Boycott Advance.

Reference

For more detail on the specifications of the GBA, see akkit.org

Contributing

As this is a test space for code, I will not be accepting any contributions.

License

This code is subject to the GNU General Public License.

About

The classic "Pong", written for the Game Boy Advance

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages