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/protagonist.py

    r265 r276  
    8585    def _get_image(self, name, *transforms):
    8686        return resources.get_image('creatures', name, transforms=transforms)
     87
     88    def change_space(self, new_space):
     89        self.physicser.remove_from_space()
     90        self.physicser.set_space(new_space)
     91        self.physicser.add_to_space()
    8792
    8893    def _make_renderer(self):
Note: See TracChangeset for help on using the changeset viewer.