Changeset 146:fff8e14858b4


Ignore:
Timestamp:
Sep 2, 2013, 9:12:15 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Remove hardcoded level hackery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r145 r146  
    7474        self.add_protagonist()
    7575        self.add_game_objects()
    76         # self._setup_demo_objects()
    77 
    78     def _setup_demo_objects(self):
    79         # TODO: Put this in a level instead
    80         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_HIGH
    86         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)
    9876
    9977    def add_walls(self):
Note: See TracChangeset for help on using the changeset viewer.