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

Save door and lever state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/world.py

    r345 r346  
    2727        self.protagonist = Protagonist(pymunk.Space(), self, starting_position)
    2828        self.level = (first_level, starting_position)
     29        self.level_state = {}
    2930
    3031    def _save_location(self):
     
    4748                continue
    4849            # Hack until we save protagonist state
    49             if hasattr(value, 'update'):
     50            if hasattr(value, 'update') and not isinstance(value, dict):
    5051                continue
    5152            data[attr] = value
Note: See TracChangeset for help on using the changeset viewer.