Just a test project displaying and testing the capabilities of the Rusty GBA library.
Provides the code, but also the build system to create a .gba file from scratch, using indications of the awesome gba crate.
Can be used as a template to simply start a new project with Rusty GBA.
# Launch the built ROM
cargo make run
# Only create the ROM
cargo make create_rom
# Only build the code
cargo make build
# Only compresses the assets
# Will build the assets compressor if not present
cargo make assets
# Perform tests
cargo make test
# Deletes all the generated contents
cargo make reset
In order to build this project, install the nightly
rust channel:
rustup install nightly
rustup +nightly component add rust-src
And install the arm-none-eabi
toolchain, as well as some tools to build the complete toolchains,
example for Debian-based distros:
cargo install gbafix
sudo apt install binutils-arm-none-eabi g++
You will also need cargo-make, and the mgba
emulator:
sudo apt install mgba-sdl
-
Assets compression taken from gba-lz77 repository (forked to ensure it always stays up and compatible)
-
Based on the gba lib for Rust