Changeset 73:e118458a4e9c


Ignore:
Timestamp:
Sep 1, 2013, 7:39:37 PM (7 years ago)
Author:
davidsharpe@…
Branch:
default
Message:

Added environmental motion effects to protagonist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r66 r73  
    112112    def has_item(self, item):
    113113        return item in self.inventory
     114
     115    def environmental_movement(self, dx, dy):
     116        if (dx, dy) == (0, 0):
     117            return
     118        self._body.apply_impulse((dx, dy))
Note: See TracChangeset for help on using the changeset viewer.