correction fonction de creation de map
This commit is contained in:
parent
cb30de307e
commit
9ae1aec1f1
|
@ -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 }));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue