mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
fixed the sprite example to be compilable
This commit is contained in:
parent
e4b6c62445
commit
3e962f2e35
|
@ -63,9 +63,9 @@ Using the `Gba` struct we get the [`ObjectController` struct](https://docs.rs/ag
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#[agb::entry]
|
#[agb::entry]
|
||||||
fn main(gba: mut agb::Gba) -> ! {
|
fn main(mut gba: agb::Gba) -> ! {
|
||||||
// Get the object manager
|
// Get the object manager
|
||||||
let object = gba.display.object.get();
|
let object = gba.display.object.get_managed();
|
||||||
|
|
||||||
// Create an object with the ball sprite
|
// Create an object with the ball sprite
|
||||||
let mut ball = object.object_sprite(BALL.sprite(0));
|
let mut ball = object.object_sprite(BALL.sprite(0));
|
||||||
|
|
Loading…
Reference in a new issue