# HG changeset patch # User Jeremy Thurgood # Date 1378156335 -7200 # Node ID fff8e14858b468d93127f162d509e0b58c64cd7b # Parent 0c49627920eb03073dead6247b67ba6a655346d3 Remove hardcoded level hackery. diff -r 0c49627920eb -r fff8e14858b4 nagslang/screens/area.py --- a/nagslang/screens/area.py Mon Sep 02 23:05:25 2013 +0200 +++ b/nagslang/screens/area.py Mon Sep 02 23:12:15 2013 +0200 @@ -73,28 +73,6 @@ self.add_walls() self.add_protagonist() self.add_game_objects() - # self._setup_demo_objects() - - def _setup_demo_objects(self): - # TODO: Put this in a level instead - glue = PuzzleGlue() - switch = FloorSwitch(self.space, (300, 400)) - switch2 = FloorSwitch(self.space, (300, 600)) - light = FloorLight(self.space, (300, 500), 'switch') - light2 = FloorLight(self.space, (250, 500), 'both_switches') - light2.zorder = ZORDER_HIGH - glue.add_component('switch', switch) - glue.add_component('switch2', switch2) - glue.add_component('light', light) - glue.add_component('light2', light2) - glue.add_component( - 'both_switches', StateLogicalAndPuzzler('switch', 'switch2')) - self._drawables.add(switch) - self._drawables.add(switch2) - self._drawables.add(light) - self._drawables.add(light2) - box = Box(self.space, (250, 350)) - self._drawables.add(box) def add_walls(self): self.walls = []