/gba-rust

Primary LanguageRustMIT LicenseMIT

gba-rust

In order to learn more about the low-level aspects of Rust, I decided to implement some simple proof-of-concept games for the gameboy advance in Rust.

For now there is only a very simple implementation of snake.

Prerequisites

  • rustup

    curl https://sh.rustup.rs -sSf | sh
  • Rust nightly

    rustup install nightly
  • Rust sources

    rustup component add rust-src
  • xargo

    cargo install xargo
  • arm-none-eabi binutils

    • Mac

      brew cask install gcc-arm-embedded
    • Ubuntu

      apt install binutils-arm-none-eabi

Building

All that's needed is to run a small bash script.

# Debug
./build.sh

# Release
./build.sh --release

Running

After building, find the .gba file to load into a GBA emulator in ./out. So far, this has been tested and works on mGBA.