generated from tipragot/rust
Change textures of tiles #75
|
@ -42,18 +42,9 @@ impl Tile {
|
||||||
/// this function in the future.
|
/// this function in the future.
|
||||||
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: 184.0, y: 164.0 },
|
||||||
x: 184.0,
|
Self::Forest => Vec2 { x: 184.0, y: 138.0 },
|
||||||
y: 164.0,
|
Self::Hill => Vec2 { x: 184.0, y: 181.0 },
|
||||||
},
|
|
||||||
Self::Forest => Vec2 {
|
|
||||||
x: 184.0,
|
|
||||||
y: 138.0,
|
|
||||||
},
|
|
||||||
Self::Hill => Vec2 {
|
|
||||||
x: 184.0,
|
|
||||||
y: 181.0,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue