mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
Put music and graphics in different folders
This commit is contained in:
parent
85198d725f
commit
5ec0ad0da4
6 changed files with 4 additions and 4 deletions
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
|
@ -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(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue