Ignore:
Timestamp:
09/02/13 11:48:24 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

FloorLight, linked to a FloorSwitch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r105 r106  
    66
    77from nagslang.events import ScreenChange
    8 from nagslang.game_object import FloorSwitch
     8from nagslang.game_object import FloorSwitch, FloorLight, PuzzleGlue
    99from nagslang.level import Level
    1010from nagslang.protagonist import Protagonist
     
    5454        self.add_protagonist()
    5555        # TODO: Put this in a level instead:
    56         self._drawables.append(FloorSwitch(self.space, (300, 400)))
     56        glue = PuzzleGlue()
     57        switch = FloorSwitch(self.space, (300, 400))
     58        light = FloorLight(self.space, (300, 500), 'switch')
     59        glue.add_component('switch', switch.puzzler)
     60        glue.add_component('light', light.puzzler)
     61        self._drawables.append(switch)
     62        self._drawables.append(light)
    5763
    5864    def add_walls(self):
Note: See TracChangeset for help on using the changeset viewer.