commit:49cd05963a351d1d5b2738ee47f6adcbe3c0a999
author:Chip Black
committer:Chip Black
date:Mon Jul 28 03:58:04 2008 -0500
parents:7a0707319d5bdd7c170a56085f108b3842cc85ab
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
diff --git a/classes/RichterActor.py b/classes/RichterActor.py
line changes: +1/-1
index 9d08c3b..1997e85
--- a/classes/RichterActor.py
+++ b/classes/RichterActor.py
@@ -50,7 +50,7 @@ class RichterActor(Actor):
 
 
 	def idle(self):
-		if self.currentstate == 'walk_l':
+		if self.currentstatename == 'walk_l':
 			self.setState('idle_l')
 		else:
 			self.setState('idle_r')

diff --git a/levels/example1/level.yaml b/levels/example1/level.yaml
line changes: +2/-2
index 1275984..2df7cfc
--- a/levels/example1/level.yaml
+++ b/levels/example1/level.yaml
@@ -9,7 +9,7 @@ layers:
         class: RichterActor
         properties: {position: [64,64]}
         events:
-          collide(self, obj): |
+          collideStart(self, obj): |
             if obj == zombie1:
             	print "ZOMBIE!"
           enterRegion(self, region): |
@@ -23,7 +23,7 @@ layers:
         class: Zombie
         properties: {position: [512, 64]}
         events:
-          collide(self, obj): |
+          collideStart(self, obj): |
             print "GRAAAR!", obj
 
   - name: stars