finish move to Python-handled imports
[Tsunagari.git] / data / testing / areas / grove_house.py
blob4aa4d18fc8d6f74e0562152e697f3da5b2063877
1 import areas.sounds
3 opened_door = False
5 def open_door():
6 # Unlock the door!
7 global opened_door
8 if opened_door == False:
9 opened_door = True
11 tile = Area.tile(4, 0, 0.0) # closed exit on north wall, property layer
12 tile.exit = new_exit("areas/secret_room.tmx", 4, 5, 0.0)
13 tile.flag.nowalk = False
15 tile = Area.tile(4, 0, -0.2) # closed exit on north wall, graphics layer
16 tile.type = Area.tileset("areas/tiles/indoors.png").at(2, 9) # change to open exit
18 Area.redraw()
19 areas.sounds.sound_door()