update example

This commit is contained in:
Corwin 2022-03-07 20:38:13 +00:00
parent 8f7e7748e2
commit 40c4a26cb1

View file

@ -3,15 +3,15 @@
extern crate alloc;
use agb::display::object::{ObjectController, Sprite, TagMap};
use agb::display::object::{Graphics, ObjectController, Sprite, TagMap};
use alloc::vec::Vec;
const SPRITE_TAGS: (&[Sprite], &TagMap) = agb::include_aseprite!(
const GRAPHICS: &Graphics = agb::include_aseprite!(
"../examples/the-purple-night/gfx/objects.aseprite",
"../examples/the-purple-night/gfx/boss.aseprite"
);
const SPRITES: &[Sprite] = SPRITE_TAGS.0;
const TAG_MAP: &TagMap = SPRITE_TAGS.1;
const SPRITES: &[Sprite] = GRAPHICS.sprites();
const TAG_MAP: &TagMap = GRAPHICS.tags();
fn all_sprites(gfx: &ObjectController) {
let mut input = agb::input::ButtonController::new();