Py: new Exit constructor "newExit"
[Tsunagari.git] / src / testing / areas / house_switch.py
blob892f56941fbe6dfa45e552ba025e226c780f2eff
1 # Unlock the door!
2 if unlocked_the_door == False:
3 unlocked_the_door = True
5 tile = area.tiles(4, 0, 0.0) # closed exit on north wall, property layer
6 tile.exit = newExit("areas/secret_room.tmx", 4, 5, 0.0)
7 tile.walkable = True
9 tile = area.tiles(4, 0, -0.2) # closed exit on north wall, graphics layer
10 tile.type = area.get_tile_type(66) # change to open exit
12 area.request_redraw()
13 Sound.play("sounds/door.oga") # unlocking sound