Ignore:
Timestamp:
09/06/13 11:42:42 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Remember start position on a level (a bit hacky)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/world.py

    r342 r345  
    2323        self.kills = 0
    2424        self.rooms = 0
    25         self.protagonist = Protagonist(pymunk.Space(), self, (350, 300))
    2625        first_level = Level.list_levels()[0]
    27         self.level = first_level
     26        starting_position = (350, 300)
     27        self.protagonist = Protagonist(pymunk.Space(), self, starting_position)
     28        self.level = (first_level, starting_position)
    2829
    2930    def _save_location(self):
Note: See TracChangeset for help on using the changeset viewer.