Put music and graphics in different folders

This commit is contained in:
crumblingstatue 2023-04-15 16:14:49 +02:00
parent 85198d725f
commit 5ec0ad0da4
6 changed files with 4 additions and 4 deletions

View file

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

View file

@ -11,10 +11,10 @@ pub struct Res {
impl Res { impl Res {
pub fn load() -> anyhow::Result<Self> { pub fn load() -> anyhow::Result<Self> {
Ok(Self { Ok(Self {
tile_atlas: Texture::from_file("res/tiles.png")?, tile_atlas: Texture::from_file("res/graphics/tiles.png")?,
light_texture: Texture::from_file("res/light2.png")?, light_texture: Texture::from_file("res/graphics/light2.png")?,
surf_music: Music::from_file("res/music.ogg").unwrap(), surf_music: Music::from_file("res/music/music.ogg").unwrap(),
und_music: Music::from_file("res/cave2.ogg").unwrap(), und_music: Music::from_file("res/music/cave2.ogg").unwrap(),
}) })
} }
} }