fixed the sprite example to be compilable

This commit is contained in:
tolik518 2024-05-14 20:36:10 +02:00
parent e4b6c62445
commit 3e962f2e35

View file

@ -63,9 +63,9 @@ Using the `Gba` struct we get the [`ObjectController` struct](https://docs.rs/ag
```rust
#[agb::entry]
fn main(gba: mut agb::Gba) -> ! {
fn main(mut gba: agb::Gba) -> ! {
// Get the object manager
let object = gba.display.object.get();
let object = gba.display.object.get_managed();
// Create an object with the ball sprite
let mut ball = object.object_sprite(BALL.sprite(0));