From 9ae1aec1f18f60768508e2a01d08c3b2b20a3382 Mon Sep 17 00:00:00 2001 From: CoCo_Sol Date: Sat, 27 May 2023 16:53:27 +0200 Subject: [PATCH] correction fonction de creation de map --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })); } }