Add main menu

This commit is contained in:
2022-01-29 14:31:02 +01:00
parent 62240a42c1
commit 835a416013
5 changed files with 43 additions and 18 deletions

18
src/rex_assets.rs Normal file
View File

@@ -0,0 +1,18 @@
use rltk::rex::XpFile;
rltk::embedded_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
pub struct RexAssets {
pub menu: XpFile,
}
impl RexAssets {
#[allow(clippy::new_without_default)]
pub fn new() -> RexAssets {
rltk::link_resource!(SMALL_DUNGEON, "../resources/SmallDungeon_80x50.xp");
RexAssets {
menu: XpFile::from_resource("../resources/SmallDungeon_80x50.xp").unwrap()
}
}
}