Switching up start_x and start_y so the player spawn is correctly set

This commit is contained in:
Charles Peyrat 2020-12-11 17:02:22 +01:00
parent 3c614dcca9
commit 7fb743eb72

View File

@ -101,4 +101,4 @@ class Generator:
while grid[start_y][start_x] != Tile.FLOOR:
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)