Ignore:
Timestamp:
09/05/13 11:09:14 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Move protagonist to the world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/world.py

    r261 r276  
    66import sys
    77
     8import pymunk
     9
    810from nagslang.yamlish import dump, load
     11from nagslang.protagonist import Protagonist
    912
    1013
     
    1922        self.kills = 0
    2023        self.rooms = 0
     24        self.protagonist = Protagonist(pymunk.Space(), (350, 300))
    2125
    2226    def _save_location(self):
     
    3741            value = getattr(self, attr)
    3842            if hasattr(value, '__name__'):
     43                continue
     44            # Hack until we save protagonist state
     45            if hasattr(value, 'animate'):
    3946                continue
    4047            data[attr] = value
Note: See TracChangeset for help on using the changeset viewer.