diff gamelib/scenes/engine.py @ 400:0fd5796a1562

The stars are sort of okay.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 28 Aug 2010 21:28:37 +0200
parents 1cfcd82519b6
children 6a24970a0d21
line wrap: on
line diff
--- a/gamelib/scenes/engine.py	Sat Aug 28 21:24:04 2010 +0200
+++ b/gamelib/scenes/engine.py	Sat Aug 28 21:28:37 2010 +0200
@@ -31,6 +31,7 @@
         self.add_thing(ArrowsBottomLeft())
         self.add_thing(ArrowsRight())
         self.add_thing(DangerSign())
+        self.add_thing(Stars())
         self.add_thing(ToMap())
         self.add_thing(GenericDescThing('engine.body', 1,
             "Dead. I think those cans were past their sell-by date.",
@@ -412,6 +413,25 @@
 
     INITIAL = 'sign'
 
+    def is_interactive(self):
+        return False
+
+
+class Stars(Thing):
+    NAME = 'engine.stars'
+
+    INTERACTS = {
+        'stars': InteractAnimated(287, 455,
+            ['stars_%d.png' % (i+1) for i in range(5) + range(3,0,-1)],
+            30,
+        )
+    }
+
+    INITIAL = 'stars'
+
+    def is_interactive(self):
+        return False
+
 
 class ToMap(Door):