commit:4f036958d8cc9f292725ecf7710d782428a695c7
author:Chip Black
committer:Chip Black
date:Fri Jul 25 00:46:26 2008 -0500
parents:f74777e5e91d4791c27acb2a72d51ae3b8aa0085
Stage, Layer modifications

Made surfaces a per-layer property, changed Layer initialization
Added env property to Stage for scripting purposes
diff --git a/Richter/Stage.py b/Richter/Stage.py
line changes: +4/-4
index 71af6e9..de41578
--- a/Richter/Stage.py
+++ b/Richter/Stage.py
@@ -10,10 +10,9 @@ class Layer:
 		   1.0 is typically the playfield scroll speed, >1.0 is faster,
 		   and <1.0 is slower)"""
 
-	def __init__(self, collage, scale=1.0, parallax=1.0):
-		if collage:
-			self.collage = Collage(collage)
-			self.bbox = self.collage.bbox
+	def __init__(self, collage=None, surfaces=None, scale=1.0, parallax=1.0):
+		self.collage = collage
+		self.surfaces = surfaces
 		self.scale = scale
 		self.parallax = parallax
 		self.position = (0, 0)
@@ -48,6 +47,7 @@ class Stage:
 	def __init__(self):
 		self.layers = []
 		self.position = (0, 0)
+		self.env = {}
 
 
 	def addLayerBack(self, layer):