add examples demonstrating this

This commit is contained in:
Corwin 2022-08-01 01:38:26 +01:00
parent 3fa5b4467f
commit 0409a20527
3 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -8,7 +8,9 @@ use alloc::vec::Vec;
const GRAPHICS: &Graphics = agb::include_aseprite!(
"examples/gfx/objects.aseprite",
"examples/gfx/boss.aseprite"
"examples/gfx/boss.aseprite",
"examples/gfx/wide.aseprite",
"examples/gfx/tall.aseprite"
);
const SPRITES: &[Sprite] = GRAPHICS.sprites();
const TAG_MAP: &TagMap = GRAPHICS.tags();
@ -102,6 +104,8 @@ fn main(mut gba: agb::Gba) -> ! {
loop {
all_tags(&gfx);
gfx.commit();
all_sprites(&gfx);
gfx.commit();
}
}