3 global house_opened_door
4 if house_opened_door
== False:
5 house_opened_door
= True
7 tile
= Area
.tile(4, 0, 0.0) # closed exit on north wall, property layer
8 tile
.exit
= new_exit("areas/secret_room.tmx", 4, 5, 0.0)
9 tile
.flag
.nowalk
= False
11 tile
= Area
.tile(4, 0, -0.2) # closed exit on north wall, graphics layer
12 tile
.type = Area
.tileset("areas/tiles/indoors.png").at(2, 9) # change to open exit
15 Sound
.play("sounds/door.oga") # unlocking sound