Go to file
Corwin Kuiper 0e55916865 add test
2022-01-04 00:31:27 +00:00
.github Check consistency on pull request and push 2022-01-01 22:15:52 +00:00
.vscode move launch.json to parent 2021-05-20 07:25:51 +01:00
agb add test 2022-01-04 00:31:27 +00:00
agb-image-converter Merge pull request #143 from agbrs/renovate/syn-1.x 2022-01-01 21:20:25 +00:00
agb-macros Merge pull request #143 from agbrs/renovate/syn-1.x 2022-01-01 21:20:25 +00:00
agb-sound-converter Merge pull request #143 from agbrs/renovate/syn-1.x 2022-01-01 21:20:25 +00:00
book Move some files around 2021-11-24 20:24:11 +00:00
examples Update all the usages of mixer.vblank() 2022-01-02 21:59:17 +00:00
mgba-test-runner Update Rust crate bindgen to 0.59.2 2022-01-01 21:07:43 +00:00
template Add gitignore for template 2021-11-24 22:42:55 +00:00
.gitignore Delete template/Cargo.lock 2021-06-20 23:53:42 +01:00
LICENSE add project wide MPLv2 license 2021-05-29 15:22:19 +01:00
logo-original.png Add logo to repo and readme 2021-07-05 23:56:43 +01:00
README.md Add CMake to the test runner instructions 2021-08-01 21:16:57 +01:00
release.sh Fix lints in release.sh 2022-01-01 18:55:37 +00:00

Rust for the Game Boy Advance

AGB logo

This is a library for making games on the Game Boy Advance using the Rust programming language. It attempts to be a high level abstraction over the internal workings of the Game Boy Advance whilst still being high performance and memory efficient.

The documentation for the latest release can be found on docs.rs. Note that this repository does not necessarily contain the latest release, but in development versions. Further work is needed to improve the documentation.

Build Requirements

  • Recent rustup, see the rust website for instructions for your operating system.
    • You can update rustup with rustup update, or using your package manager if you obtained rustup in this way.
  • arm eabi binutils
    • Debian and derivatives: sudo apt install binutils-arm-none-eabi
    • Arch Linux and derivatives: pacman -S arm-none-eabi-binutils
    • Windows can apparently use the GNU Arm Embedded Toolchain. Make sure to select "Add path to environment variable" during the install.
    • This process has only been tested on Ubuntu and Arch Linux.

Test Requirements

  • libelf and cmake
    • Debian and derivatives: sudo apt install libelf-dev cmake
    • Arch Linux and derivatives: pacman -S libelf cmake
  • mgba-test-runner
    • Run cargo install --path mgba-test-runner inside this directory

Real Hardware Build

  • Need gbafix, rust implementation can be installed with cargo install gbafix.
  • On compiled elf file, additionally need to
arm-none-eabi-objcopy -O binary {input-elf} {output-gba}
gbafix {output-gba}

Stability

0% stable, I have no problems making drastic changes in the API in order to make something nice to work with.