# HG changeset patch # User Neil Muller # Date 1283030360 -7200 # Node ID 8d8ccae862eea1cb52a4bbbf85526c02392e7ca6 # Parent fc36fb0937a6437d53da00cde416a9f5fce5d9b9 Animated starfield for bridge diff -r fc36fb0937a6 -r 8d8ccae862ee gamelib/scenes/bridge.py --- a/gamelib/scenes/bridge.py Sat Aug 28 23:17:08 2010 +0200 +++ b/gamelib/scenes/bridge.py Sat Aug 28 23:19:20 2010 +0200 @@ -58,6 +58,7 @@ self.add_thing(LeftLights()) self.add_thing(RightLights()) self.add_thing(JimPanel()) + self.add_thing(StarField()) self.add_thing(GenericDescThing('bridge.wires', 1, "The brightly coloured wires contrast with the drab walls.", ((46, 4, 711, 143),))) @@ -243,6 +244,21 @@ self.scene.remove_thing(self) return Result("The superconductor module unclips easily.") +class StarField(Thing): + + NAME = 'bridge.stars' + + INTERACTS = { + 'stars' : InteractAnimated(185, 145, + ['stars_%d.png' % (i+1) for i in range(3) + range(1,0,-1)], 30) + } + + INITIAL = 'stars' + + def is_interactive(self): + return False + + class BlinkingLights(Thing): def __init__(self):