Add tile graphic

This commit is contained in:
crumblingstatue 2023-04-01 21:01:14 +02:00
parent d78726eb5b
commit fbc7e35f9e
11 changed files with 812 additions and 20 deletions

13
src/res.rs Normal file
View file

@ -0,0 +1,13 @@
use sfml::{graphics::Texture, SfBox};
pub struct Res {
pub tile_atlas: SfBox<Texture>,
}
impl Res {
pub fn load() -> anyhow::Result<Self> {
Ok(Self {
tile_atlas: Texture::from_file("res/tiles.png")?,
})
}
}