mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
add examples demonstrating this
This commit is contained in:
parent
3fa5b4467f
commit
0409a20527
BIN
agb/examples/gfx/tall.aseprite
Normal file
BIN
agb/examples/gfx/tall.aseprite
Normal file
Binary file not shown.
BIN
agb/examples/gfx/wide.aseprite
Normal file
BIN
agb/examples/gfx/wide.aseprite
Normal file
Binary file not shown.
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue