MattWoelk / gba-rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
    rustup override set nightly
  • Rust sources

    rustup component add rust-src
  • cargo-xbuild

    cargo install cargo-xbuild
  • arm-none-eabi binutils

    • Mac

      brew cask install gcc-arm-embedded
    • Ubuntu

      apt install binutils-arm-none-eabi
    • Windows

      No need. It's included in this repository.

Building

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

Windows:

./windows/build-release.bat

Non-Windows:

# 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.

About

License:MIT License


Languages

Language:Rust 67.9%Language:Assembly 19.1%Language:Makefile 5.4%Language:Shell 5.2%Language:Batchfile 2.4%