Place doors at the beginning of the corridor

This commit is contained in:
Yohann D'ANELLO
2021-01-10 22:51:01 +01:00
parent 5e378fc2d0
commit e744310861
3 changed files with 5 additions and 2 deletions

View File

@ -83,8 +83,7 @@ class Generator:
def place_room(level: List[List[Tile]], y: int, x: int,
room: List[List[Tile]], door_y: int, door_x: int) -> None:
rh, rw = len(room), len(room[0])
# maybe place Tile.DOOR here ?
level[y][x] = Tile.FLOOR
level[y][x] = Tile.DOOR
for ry in range(rh):
for rx in range(rw):
if room[ry][rx] == Tile.FLOOR: