Changeset 256:2a0bad886956 for nagslang/game_object.py
- Timestamp:
- 09/04/13 22:06:37 (9 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nagslang/game_object.py
r235 r256 137 137 self.renderer.animate() 138 138 139 def collide_with_protagonist(self ):139 def collide_with_protagonist(self, protagonist): 140 140 """Called as a `pre_solve` collision callback with the protagonist. 141 141 … … 255 255 ) 256 256 257 def collide_with_protagonist(self ):257 def collide_with_protagonist(self, protagonist): 258 258 if self.puzzler.get_state(): 259 259 DoorEvent.post(self.destination, self.dest_pos) … … 283 283 ) 284 284 285 def collide_with_protagonist(self ):285 def collide_with_protagonist(self, protagonist): 286 286 if self.puzzler.get_state(): 287 287 # Reject the collision, we can walk through.
Note:
See TracChangeset
for help on using the changeset viewer.