Switching up start_x and start_y so the player spawn is correctly set
This commit is contained in:
parent
3c614dcca9
commit
7fb743eb72
|
@ -101,4 +101,4 @@ class Generator:
|
||||||
while grid[start_y][start_x] != Tile.FLOOR:
|
while grid[start_y][start_x] != Tile.FLOOR:
|
||||||
start_x, start_y = randint(0, width - 1), randint(0, height - 1)
|
start_x, start_y = randint(0, width - 1), randint(0, height - 1)
|
||||||
|
|
||||||
return Map(width, height, grid, start_x, start_y)
|
return Map(width, height, grid, start_y, start_x)
|
||||||
|
|
Loading…
Reference in New Issue