diff gamelib/scenes/engine.py @ 357:e5f28bd6d4ce

Animate engine room arrows.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 28 Aug 2010 16:46:46 +0200
parents b61dccc7fb42
children a95bfba3acd5
line wrap: on
line diff
--- a/gamelib/scenes/engine.py	Sat Aug 28 16:45:55 2010 +0200
+++ b/gamelib/scenes/engine.py	Sat Aug 28 16:46:46 2010 +0200
@@ -26,6 +26,9 @@
         self.add_thing(CryoContainers())
         self.add_thing(CryoContainerReceptacle())
         self.add_thing(CoolingPipes())
+        self.add_thing(ArrowsTopLeft())
+        self.add_thing(ArrowsBottomLeft())
+        self.add_thing(ArrowsRight())
         self.add_thing(ToMap())
         self.add_thing(GenericDescThing('engine.body', 1,
             "Dead. I think those cans were passed their sell-by date.",
@@ -342,6 +345,48 @@
         return False
 
 
+class ArrowsTopLeft(Thing):
+    NAME = 'engine.arrows_top_left'
+
+    INTERACTS = {
+        'arrows': InteractAnimated(25, 324, (
+            'arrow_top_left_1.png', 'arrow_top_left_2.png',
+            'arrow_top_left_3.png', 'arrow_top_left_4.png',
+            ), 15,
+        )
+    }
+
+    INITIAL = 'arrows'
+
+
+class ArrowsBottomLeft(Thing):
+    NAME = 'engine.arrows_bottom_left'
+
+    INTERACTS = {
+        'arrows': InteractAnimated(32, 425, (
+            'arrow_bottom_left_1.png', 'arrow_bottom_left_2.png',
+            'arrow_bottom_left_3.png', 'arrow_bottom_left_4.png',
+            ), 16,
+        )
+    }
+
+    INITIAL = 'arrows'
+
+
+class ArrowsRight(Thing):
+    NAME = 'engine.arrows_right'
+
+    INTERACTS = {
+        'arrows': InteractAnimated(708, 172, (
+            'arrow_right_1.png', 'arrow_right_2.png',
+            'arrow_right_3.png', 'arrow_right_4.png',
+            ), 17,
+        )
+    }
+
+    INITIAL = 'arrows'
+
+
 class ToMap(Door):
 
     SCENE = "engine"