Change textures of tiles (#75)
All checks were successful
Rust Checks / checks (push) Successful in 3m0s

Reviewed-on: fish-canard/border-wars#75
Reviewed-by: Raphaël <r.lauray@outlook.fr>
Co-authored-by: CoCo_Sol007 <solois.corentin@gmail.com>
Co-committed-by: CoCo_Sol007 <solois.corentin@gmail.com>
This commit is contained in:
CoCo_Sol 2024-03-09 14:36:57 +00:00 committed by CoCo_Sol
parent d378e8f44c
commit c43c14a76f
4 changed files with 4 additions and 13 deletions

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

@ -42,25 +42,16 @@ impl Tile {
/// this function in the future.
const fn get_image_size(&self) -> Vec2 {
match self {
Self::Grass => Vec2 {
x: 1250.0,
y: 1000.0,
},
Self::Forest => Vec2 {
x: 1250.0,
y: 1000.0,
},
Self::Hill => Vec2 {
x: 1250.0,
y: 1300.0,
},
Self::Grass => Vec2 { x: 184.0, y: 164.0 },
Self::Forest => Vec2 { x: 184.0, y: 138.0 },
Self::Hill => Vec2 { x: 184.0, y: 181.0 },
}
}
}
/// 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. }))
}