Ignore:
Timestamp:
09/01/13 20:53:37 (8 years ago)
Author:
davidsharpe@…
Branch:
default
Phase:
public
Message:

Floor switch with horrible hackery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r65 r81  
    66
    77from nagslang.events import ScreenChange
     8from nagslang.game_object import FloorSwitch
    89from nagslang.level import Level
    910from nagslang.protagonist import Protagonist
    1011from nagslang.screens.base import Screen
    11 
    1212
    1313class ControlKeys(object):
     
    5555        self.protagonist = Protagonist((400, 300))
    5656        self.protagonist.add_to_space(self.space)
     57        self.toy_switch = FloorSwitch((300, 400))
     58        self.toy_switch.add_to_space(self.space)
    5759
    5860    def handle_event(self, ev):
     
    7072        #pymunk.pygame_util.draw(surface, *self.walls)
    7173        self.protagonist.render(surface)
     74        self.toy_switch.render(surface)
    7275
    7376    def tick_protagonist(self):
     
    8588        self.tick_protagonist()
    8689        super(AreaScreen, self).tick(seconds)
     90
Note: See TracChangeset for help on using the changeset viewer.