mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 21:05:01 +01:00
Add tile graphic
This commit is contained in:
parent
d78726eb5b
commit
fbc7e35f9e
11 changed files with 812 additions and 20 deletions
13
src/res.rs
Normal file
13
src/res.rs
Normal 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")?,
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue