diff --git a/src/map.rs b/src/map.rs index e9ec6b5..4493d5a 100644 --- a/src/map.rs +++ b/src/map.rs @@ -79,7 +79,7 @@ pub enum Tile { pub fn init_map(width: u8, height: u8, mut commands: Commands) { for x in 0..width { for y in 0..height { - if !(x % 2 == 0 && y == width - 1) { + if !(y % 2 == 1 && x == width - 1) { commands.spawn((get_random_tile(), Position { x, y })); } }