Changeset 146:fff8e14858b4
- Timestamp:
- 09/02/13 21:12:15 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nagslang/screens/area.py
r145 r146 74 74 self.add_protagonist() 75 75 self.add_game_objects() 76 # self._setup_demo_objects()77 78 def _setup_demo_objects(self):79 # TODO: Put this in a level instead80 glue = PuzzleGlue()81 switch = FloorSwitch(self.space, (300, 400))82 switch2 = FloorSwitch(self.space, (300, 600))83 light = FloorLight(self.space, (300, 500), 'switch')84 light2 = FloorLight(self.space, (250, 500), 'both_switches')85 light2.zorder = ZORDER_HIGH86 glue.add_component('switch', switch)87 glue.add_component('switch2', switch2)88 glue.add_component('light', light)89 glue.add_component('light2', light2)90 glue.add_component(91 'both_switches', StateLogicalAndPuzzler('switch', 'switch2'))92 self._drawables.add(switch)93 self._drawables.add(switch2)94 self._drawables.add(light)95 self._drawables.add(light2)96 box = Box(self.space, (250, 350))97 self._drawables.add(box)98 76 99 77 def add_walls(self):
Note:
See TracChangeset
for help on using the changeset viewer.