generated from tipragot/rust
Change textures of tiles #75
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 |
|
@ -43,16 +43,16 @@ impl Tile {
|
||||||
pub const fn get_image_size(&self) -> Vec2 {
|
pub const fn get_image_size(&self) -> Vec2 {
|
||||||
match self {
|
match self {
|
||||||
Self::Grass => Vec2 {
|
Self::Grass => Vec2 {
|
||||||
x: 1250.0,
|
x: 184.0,
|
||||||
y: 1000.0,
|
y: 164.0,
|
||||||
},
|
},
|
||||||
Self::Forest => Vec2 {
|
Self::Forest => Vec2 {
|
||||||
x: 1250.0,
|
x: 184.0,
|
||||||
y: 1000.0,
|
y: 138.0,
|
||||||
},
|
},
|
||||||
Self::Hill => Vec2 {
|
Self::Hill => Vec2 {
|
||||||
x: 1250.0,
|
x: 184.0,
|
||||||
y: 1300.0,
|
y: 181.0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ impl Tile {
|
||||||
|
|
||||||
/// Init resources related to the rendering of the map.
|
/// Init resources related to the rendering of the map.
|
||||||
fn init_resources_for_rendering(mut commands: Commands) {
|
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. }))
|
commands.insert_resource(TilesSize(Vec2 { x: 125., y: 100. }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue