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

Rectangular human protagonist shape, refactored physicsers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r92 r93  
    5454
    5555    def add_protagonist(self):
    56         self.protagonist = Protagonist((350, 300))
    57         self.protagonist.add_to_space(self.space)
    58         self.toy_switch = FloorSwitch((300, 400))
    59         self.toy_switch.add_to_space(self.space)
     56        self.protagonist = Protagonist(self.space, (350, 300))
     57        self.toy_switch = FloorSwitch(self.space, (300, 400))
    6058
    6159    def handle_event(self, ev):
     
    7068        level_size = level_surface.get_size()
    7169        display_size = display_surface.get_size()
    72         protagnist_pos = self.protagonist.physicser.render_position(
     70        protagnist_pos = self.protagonist.physicser.get_render_position(
    7371                level_surface)
    7472        x_wide = display_size[0] // 2
Note: See TracChangeset for help on using the changeset viewer.