mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Temporarily remove the sprites chapter and update the gba struct chapter ready for release
This commit is contained in:
parent
8eb4b99045
commit
12c3639cb4
|
@ -10,4 +10,4 @@
|
||||||
- [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)
|
- [The Gba struct](./pong/02_the_gba_struct.md)
|
||||||
- [Sprites](./pong/03_sprites.md)
|
<!-- - [Sprites](./pong/03_sprites.md) -->
|
|
@ -9,8 +9,6 @@ You should not create the Gba struct yourself, instead having it be passed into
|
||||||
|
|
||||||
The Gba struct is used to take advantage of rust's borrow checker, and lean on it to ensure that access to the Game Boy Advance hardware is done 'sensibly'.
|
The Gba struct is used to take advantage of rust's borrow checker, and lean on it to ensure that access to the Game Boy Advance hardware is done 'sensibly'.
|
||||||
You won't have to worry about 2 bits of your code modifying data in the wrong way!
|
You won't have to worry about 2 bits of your code modifying data in the wrong way!
|
||||||
This struct is a 'singleton', so you cannot create another instance of it.
|
|
||||||
Attempting to do so will result in a panic which by default crashes the game.
|
|
||||||
|
|
||||||
# How all agb games start
|
# How all agb games start
|
||||||
|
|
||||||
|
@ -20,7 +18,7 @@ Replace the content of the `main` function with the following:
|
||||||
# #![no_std]
|
# #![no_std]
|
||||||
# #![no_main]
|
# #![no_main]
|
||||||
# #[agb::entry]
|
# #[agb::entry]
|
||||||
# fn main() -> ! {
|
# fn main(mut _gba: Gba) -> ! {
|
||||||
loop {} // infinite loop for now
|
loop {} // infinite loop for now
|
||||||
# }
|
# }
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue