correction fonction de creation de map

This commit is contained in:
CoCo_Sol 2023-05-27 16:53:27 +02:00
parent cb30de307e
commit 9ae1aec1f1

View file

@ -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 }));
}
}