Mercurial > boomslang
changeset 281:eb3cfcaff469
Too long since last commit. Felt like showing off some machine room progress.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 23:01:17 +0200 |
parents | d9b19449436f |
children | fe899fb63866 |
files | Resources/images/machine/machine_room.png Resources/images/machine/power_lights_0.png Resources/images/machine/power_lights_1.png Resources/images/machine/power_lights_2.png Resources/images/machine/power_lights_3.png Resources/images/machine/power_lights_4.png Resources/images/machine/power_lights_5.png Resources/images/machine/power_lights_6.png Resources/images/machine/power_lights_7.png gamelib/scenes/machine.py |
diffstat | 10 files changed, 39 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/scenes/machine.py Fri Aug 27 22:35:09 2010 +0200 +++ b/gamelib/scenes/machine.py Fri Aug 27 23:01:17 2010 +0200 @@ -20,6 +20,7 @@ super(Machine, self).__init__(state) self.add_thing(ToMap()) self.add_thing(LaserWelder()) + self.add_thing(LaserWelderPowerLights()) self.add_thing(Grinder()) self.add_item(TitaniumMachete('machete')) self.add_item(TinPipe('tin_pipe')) @@ -38,6 +39,27 @@ INITIAL = "door" +# welder.slot: 249, 324, 167, 51 +# welder.button: 406, 389, 28, 31 +# welder.power lights: 201, 278, 16, 170 +# manual: 434, 496, 66, 34 + +# broken power socket: 160, 28, 68, 51 +# working power socket: 587, 23, 82, 50 +# poster: 706, 157, 76, 158 + +# drill press block: 461, 446, 38, 27 +# drill press: +#Rect 0 : +# (519, 338, 36, 63), +# (545, 348, 93, 46), +# (599, 309, 41, 150), +# (588, 445, 66, 42), +# (616, 479, 41, 14), +# (527, 393, 15, 17), +# (510, 360, 13, 11), +# (532, 331, 14, 11), +# (605, 304, 26, 8), class LaserWelder(Thing): @@ -93,6 +115,22 @@ return msg +class LaserWelderPowerLights(Thing): + + NAME = "machine.welder.lights" + + INTERACTS = { + "lights": InteractAnimated(199, 273, ["power_lights_%d.png" % i for i in range(8) + range(6,0,-1)], 10) + } + + INITIAL = 'lights' + + def get_description(self): + return random.choice([ + "The power lights pulse expectantly.", + ]) + + class TinPipe(Item): "A pipe made out of welded-together tins." @@ -106,7 +144,7 @@ NAME = "machine.grinder" INTERACTS = { - "grind": InteractText(200, 300, "Grinder"), + "grind": InteractNoImage(86, 402, 94, 63), } INITIAL = "grind"