Mercurial > nagslang
changeset 146:fff8e14858b4
Remove hardcoded level hackery.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Mon, 02 Sep 2013 23:12:15 +0200 |
parents | 0c49627920eb |
children | 7d8e1682587f |
files | nagslang/screens/area.py |
diffstat | 1 files changed, 0 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []