commit:cb02405151e70406179dd232d7e6e40a10fd9393
author:Chip Black
committer:Chip Black
date:Fri Jul 25 00:46:26 2008 -0500
parents:6d77e2a090777b7d77058e6d84cfca3a625ab9d1
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):