changeset 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 92029c76b687
files Resources/images/engine/engine_room.png Resources/images/engine/stars_1.png Resources/images/engine/stars_2.png Resources/images/engine/stars_3.png Resources/images/engine/stars_4.png Resources/images/engine/stars_5.png gamelib/scenes/engine.py sources/art/engine_room.xcf
diffstat 8 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file Resources/images/engine/engine_room.png has changed
Binary file Resources/images/engine/stars_1.png has changed
Binary file Resources/images/engine/stars_2.png has changed
Binary file Resources/images/engine/stars_3.png has changed
Binary file Resources/images/engine/stars_4.png has changed
Binary file Resources/images/engine/stars_5.png has changed
--- 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):
 
Binary file sources/art/engine_room.xcf has changed