Mercurial > boomslang
comparison 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 |
comparison
equal
deleted
inserted
replaced
356:92cc50d7ce7a | 357:e5f28bd6d4ce |
---|---|
24 self.add_thing(SuperconductorSocket()) | 24 self.add_thing(SuperconductorSocket()) |
25 self.add_thing(PowerLines()) | 25 self.add_thing(PowerLines()) |
26 self.add_thing(CryoContainers()) | 26 self.add_thing(CryoContainers()) |
27 self.add_thing(CryoContainerReceptacle()) | 27 self.add_thing(CryoContainerReceptacle()) |
28 self.add_thing(CoolingPipes()) | 28 self.add_thing(CoolingPipes()) |
29 self.add_thing(ArrowsTopLeft()) | |
30 self.add_thing(ArrowsBottomLeft()) | |
31 self.add_thing(ArrowsRight()) | |
29 self.add_thing(ToMap()) | 32 self.add_thing(ToMap()) |
30 self.add_thing(GenericDescThing('engine.body', 1, | 33 self.add_thing(GenericDescThing('engine.body', 1, |
31 "Dead. I think those cans were passed their sell-by date.", | 34 "Dead. I think those cans were passed their sell-by date.", |
32 ( | 35 ( |
33 (594, 387, 45, 109), | 36 (594, 387, 45, 109), |
340 | 343 |
341 def is_interactive(self): | 344 def is_interactive(self): |
342 return False | 345 return False |
343 | 346 |
344 | 347 |
348 class ArrowsTopLeft(Thing): | |
349 NAME = 'engine.arrows_top_left' | |
350 | |
351 INTERACTS = { | |
352 'arrows': InteractAnimated(25, 324, ( | |
353 'arrow_top_left_1.png', 'arrow_top_left_2.png', | |
354 'arrow_top_left_3.png', 'arrow_top_left_4.png', | |
355 ), 15, | |
356 ) | |
357 } | |
358 | |
359 INITIAL = 'arrows' | |
360 | |
361 | |
362 class ArrowsBottomLeft(Thing): | |
363 NAME = 'engine.arrows_bottom_left' | |
364 | |
365 INTERACTS = { | |
366 'arrows': InteractAnimated(32, 425, ( | |
367 'arrow_bottom_left_1.png', 'arrow_bottom_left_2.png', | |
368 'arrow_bottom_left_3.png', 'arrow_bottom_left_4.png', | |
369 ), 16, | |
370 ) | |
371 } | |
372 | |
373 INITIAL = 'arrows' | |
374 | |
375 | |
376 class ArrowsRight(Thing): | |
377 NAME = 'engine.arrows_right' | |
378 | |
379 INTERACTS = { | |
380 'arrows': InteractAnimated(708, 172, ( | |
381 'arrow_right_1.png', 'arrow_right_2.png', | |
382 'arrow_right_3.png', 'arrow_right_4.png', | |
383 ), 17, | |
384 ) | |
385 } | |
386 | |
387 INITIAL = 'arrows' | |
388 | |
389 | |
345 class ToMap(Door): | 390 class ToMap(Door): |
346 | 391 |
347 SCENE = "engine" | 392 SCENE = "engine" |
348 | 393 |
349 INTERACTS = { | 394 INTERACTS = { |