mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Start writing about the gba struct
This commit is contained in:
parent
f307db79e2
commit
5bcb86c222
3 changed files with 24 additions and 1 deletions
|
@ -9,3 +9,4 @@
|
||||||
- [Mac OS setup]()
|
- [Mac OS setup]()
|
||||||
- [Building the game](./setup/building.md)
|
- [Building the game](./setup/building.md)
|
||||||
- [Learn agb part I - pong](./pong/01_introduction.md)
|
- [Learn agb part I - pong](./pong/01_introduction.md)
|
||||||
|
- [The Gba struct](./pong/02_the_gba_struct.md)
|
|
@ -12,4 +12,23 @@ You will learn:
|
||||||
* How to add music to your game.
|
* How to add music to your game.
|
||||||
* How to add sound effects to your game.
|
* How to add sound effects to your game.
|
||||||
|
|
||||||
With this knowledge, you'll be well equipped to start making your own games!
|
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.
|
3
book/src/pong/02_the_gba_struct.md
Normal file
3
book/src/pong/02_the_gba_struct.md
Normal 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).
|
Loading…
Add table
Reference in a new issue