Change textures of tiles #75

Merged
CoCo_Sol merged 14 commits from change-texture into main 2024-03-09 14:37:00 +00:00
4 changed files with 7 additions and 7 deletions
Showing only changes of commit f8eb587f9f - Show all commits

Binary file not shown.

Before

Width:  |  Height:  |  Size: 715 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 806 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -43,16 +43,16 @@ impl Tile {
pub const fn get_image_size(&self) -> Vec2 {
match self {
Self::Grass => Vec2 {
x: 1250.0,
y: 1000.0,
x: 184.0,
y: 164.0,
},
Self::Forest => Vec2 {
x: 1250.0,
y: 1000.0,
x: 184.0,
y: 138.0,
},
Self::Hill => Vec2 {
x: 1250.0,
y: 1300.0,
x: 184.0,
y: 181.0,
},
}
}
@ -60,7 +60,7 @@ impl Tile {
/// Init resources related to the rendering of the map.
fn init_resources_for_rendering(mut commands: Commands) {
commands.insert_resource(TilesGap(Vec2 { x: 70., y: 40. }));
commands.insert_resource(TilesGap(Vec2 { x: 70., y: 35. }));
commands.insert_resource(TilesSize(Vec2 { x: 125., y: 100. }))
}