diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md index 0b00be0d..eb4d55de 100644 --- a/book/src/SUMMARY.md +++ b/book/src/SUMMARY.md @@ -10,4 +10,4 @@ - [Building the game](./setup/building.md) - [Learn agb part I - pong](./pong/01_introduction.md) - [The Gba struct](./pong/02_the_gba_struct.md) - - [Sprites](./pong/03_sprites.md) \ No newline at end of file + \ No newline at end of file diff --git a/book/src/pong/02_the_gba_struct.md b/book/src/pong/02_the_gba_struct.md index 6cde93ff..d7fe50b2 100644 --- a/book/src/pong/02_the_gba_struct.md +++ b/book/src/pong/02_the_gba_struct.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'. 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 @@ -20,7 +18,7 @@ Replace the content of the `main` function with the following: # #![no_std] # #![no_main] # #[agb::entry] -# fn main() -> ! { +# fn main(mut _gba: Gba) -> ! { loop {} // infinite loop for now # } ```