agb/examples/the-dungeon-puzzlers-lament/src/resources.rs

72 lines
1.4 KiB
Rust
Raw Normal View History

2023-07-19 17:41:17 +01:00
use agb::{
display::{object::Graphics, Font},
include_aseprite, include_font,
};
2023-12-10 16:35:15 +00:00
static SPRITES: &Graphics = include_aseprite!(
2023-07-19 17:41:17 +01:00
"gfx/sprites16x16.aseprite",
"gfx/sprites8x8.aseprite",
"gfx/countdown.aseprite"
);
macro_rules! named_tag {
(
$sprites:ident, [
$($name:tt),+ $(,)?
] $(,)?
) => {
$(
2023-12-10 16:35:15 +00:00
pub static $name: &agb::display::object::Tag = $sprites.tags().get(stringify!($name));
2023-07-19 17:41:17 +01:00
)+
};
}
named_tag!(
SPRITES,
[
SWORD,
SWORD_SHADOW,
SLIME,
SLIME_SHADOW,
STAIRS,
HERO,
HERO_CARRY,
ARROW_LEFT,
ARROW_RIGHT,
ARROW_UP,
ARROW_DOWN,
CURSOR,
KEY,
KEY_SHADOW,
DOOR,
SWITCHED_DOOR_CLOSED,
SWITCHED_DOOR_OPEN,
SPIKES_ON,
SPIKES_OFF,
BUTTON_ON,
BUTTON_OFF,
SQUID_UP,
SQUID_DOWN,
SQUID_UP_SHADOW,
SQUID_DOWN_SHADOW,
2023-08-27 16:47:00 +01:00
ICE,
2023-08-28 09:32:48 +01:00
ROCK,
ROCK_SHADOW,
POW_GLOVE,
POW_GLOVE_SHADOW,
2023-08-29 21:24:30 +01:00
TELEPORTER,
2023-08-29 21:52:58 +01:00
TELEPORTER_SHADOW,
2023-09-01 00:42:43 +01:00
HOLE,
ROTATOR_RIGHT,
ROTATOR_UP,
ROTATOR_LEFT,
ROTATOR_DOWN,
2023-09-01 17:56:50 +01:00
ROTATOR_RIGHT_SHADOW,
ROTATOR_UP_SHADOW,
ROTATOR_LEFT_SHADOW,
ROTATOR_DOWN_SHADOW,
2023-07-19 17:41:17 +01:00
]
);
2023-12-10 16:35:15 +00:00
pub static FONT: Font = include_font!("fnt/yoster.ttf", 12);