Stage, Layer modifications
Made surfaces a per-layer property, changed Layer initialization
Added env property to Stage for scripting purposes
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)
def __init__(self):
self.layers = []
self.position = (0, 0)
+ self.env = {}
def addLayerBack(self, layer):