Start writing about the gba struct

This commit is contained in:
GBA bot 2022-01-01 23:15:07 +00:00
parent f307db79e2
commit 5bcb86c222
3 changed files with 24 additions and 1 deletions

View file

@ -9,3 +9,4 @@
- [Mac OS setup]()
- [Building the game](./setup/building.md)
- [Learn agb part I - pong](./pong/01_introduction.md)
- [The Gba struct](./pong/02_the_gba_struct.md)

View file

@ -13,3 +13,22 @@ You will learn:
* How to add sound effects to your game.
With this knowledge, you'll be well equipped to start making your own games!
## Getting started
To start, create a new repository based on the [agb template](https://github.com/agbrs/template).
We'll call this `pong`.
Then replace the `name` field in `Cargo.toml` with `pong`, to end up with something similar to:
```toml
[package]
name = "pong"
version = "0.1.0"
authors = ["Your name here"]
edition = "2018"
# ...
```
You are now ready to get started learning about how `agb` works.

View file

@ -0,0 +1,3 @@
# The Gba struct
Almost all interaction with the Game Boy Advance's hardware goes through the [Gba singleton struct](https://docs.rs/agb/latest/agb/struct.Gba.html).