commit:9c26adc212efda5dfd8d38de1cfe8e6d31812f80
author:Chip Black
committer:Chip Black
date:Sun Jul 27 04:18:04 2008 -0500
parents:9dbc1d73cdefd67819aa653647be4804affcdea7
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()