commit:2f9d56c669ae622d3cc3d58de5d4ab5ef60f5e68
author:Chip Black
committer:Chip Black
date:Sun Jul 27 04:18:04 2008 -0500
parents:96d616a0aec7a2121c36658a40b25cf7f3e87336
Added update() execution path for Level and Layer
diff --git a/Richter/Level.py b/Richter/Level.py
line changes: +10/-0
index f621d9d..61b37c4
--- a/Richter/Level.py
+++ b/Richter/Level.py
@@ -48,6 +48,11 @@ class Layer:
 		self.position = (x * self.parallax, y * self.parallax)
 
 
+	def update(self):
+		for t in self.things:
+			t.update()
+
+
 	def draw(self):
 		glPushMatrix()
 		if self.scale != 1.0:
@@ -140,6 +145,11 @@ class Level:
 			l.moveTo(x, y)
 
 
+	def update(self):
+		for l in self.layers:
+			l.update()
+
+
 	def draw(self):
 		for l in self.layers:
 			l.draw()

diff --git a/classes/Zombie.py b/classes/Zombie.py
line changes: +5/-3
index 63c676c..3e3956c
--- a/classes/Zombie.py
+++ b/classes/Zombie.py
@@ -42,6 +42,8 @@ class Zombie(Actor):
 
 			self.topbox.bottom = self.position[1] + 72
 			self.topbox.left = self.position[0] - 31
-			if self.topbox.collidepoint(richter.position):
-				self.disabled = 120
-				richter.bounce()
+
+			# put in future collide event
+			#if self.topbox.collidepoint(richter.position):
+			#	self.disabled = 120
+			#	richter.bounce()