Example changes to reflect changes in previous commit
Changed example event handlers in levels/example1 to use new
nomenclature, and changed RichterActor to reflect state handling changes
in Actor
def idle(self):
- if self.currentstate == 'walk_l':
+ if self.currentstatename == 'walk_l':
self.setState('idle_l')
else:
self.setState('idle_r')
class: RichterActor
properties: {position: [64,64]}
events:
- collide(self, obj): |
+ collideStart(self, obj): |
if obj == zombie1:
print "ZOMBIE!"
enterRegion(self, region): |
class: Zombie
properties: {position: [512, 64]}
events:
- collide(self, obj): |
+ collideStart(self, obj): |
print "GRAAAR!", obj
- name: stars