make submodule anonymously accessible
[Tsunagari.git] / data / testing / areas / grove_house.py
blob46160f513a72641591d9a9d4d4a32bc9170c0d9a
1 # Unlock the door!
2 def house_open_door():
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
14 Area.redraw()
15 Sound.play("sounds/door.oga") # unlocking sound