comparison gamelib/scenes/machine.py @ 297:4adb64d349bc

Add some flavour text to machine room. Tweak rects
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 00:42:21 +0200
parents 3ac2e025478f
children 6d93e04036c9
comparison
equal deleted inserted replaced
296:86e3d5dd7fa6 297:4adb64d349bc
24 self.add_thing(LaserWelder()) 24 self.add_thing(LaserWelder())
25 self.add_thing(LaserWelderPowerLights()) 25 self.add_thing(LaserWelderPowerLights())
26 self.add_thing(Grinder()) 26 self.add_thing(Grinder())
27 self.add_item(TitaniumMachete('machete')) 27 self.add_item(TitaniumMachete('machete'))
28 self.add_item(TinPipe('tin_pipe')) 28 self.add_item(TinPipe('tin_pipe'))
29 self.add_thing(GenericDescThing('machine.wires', 2,
30 "Wires run to all the machines in the room",
31 (
32 (250, 172, 252, 12),
33 (388, 183, 114, 13),
34 (496, 112, 36, 64),
35 (533, 85, 19, 45),
36 (647, 114, 10, 308),
37 (111, 96, 13, 285),
38 (152, 106, 34, 30),
39 (189, 136, 27, 28),
40 (222, 157, 24, 25),
41 (120, 86, 34, 29),
42 (110, 80, 21, 15),
43 (383, 196, 12, 56),
44 (553, 61, 26, 50),
45 (574, 39, 16, 48),
46 (648, 85, 22, 26),
47 (674, 54, 23, 36),
48 )))
49 self.add_thing(GenericDescThing('machine.diagram', 3,
50 "A wiring diagram of some sort",
51 ((694, 140, 94, 185),)))
52 self.add_thing(GenericDescThing('machine.powerpoint', 4,
53 "The cables to this power point have been cut",
54 ((155, 22, 92, 74),)))
55 self.add_thing(GenericDescThing("machine.powerpoint", 5,
56 "All the machines run off this powerpoint",
57 ((593, 19, 74, 57),)))
29 58
30 def enter(self): 59 def enter(self):
31 return Result("The machine room is dark and forbidding.") 60 return Result("The machine room is dark and forbidding.")
32 61
33 62
50 # working power socket: 587, 23, 82, 50 79 # working power socket: 587, 23, 82, 50
51 # poster: 706, 157, 76, 158 80 # poster: 706, 157, 76, 158
52 81
53 # drill press block: 461, 446, 38, 27 82 # drill press block: 461, 446, 38, 27
54 # drill press: 83 # drill press:
55 #Rect 0 : 84 #Rect 0 :
56 # (519, 338, 36, 63), 85 # (519, 338, 36, 63),
57 # (545, 348, 93, 46), 86 # (545, 348, 93, 46),
58 # (599, 309, 41, 150), 87 # (599, 309, 41, 150),
59 # (588, 445, 66, 42), 88 # (588, 445, 66, 42),
60 # (616, 479, 41, 14), 89 # (616, 479, 41, 14),
66 class LaserWelder(Thing): 95 class LaserWelder(Thing):
67 96
68 NAME = "machine.laser_welder" 97 NAME = "machine.laser_welder"
69 98
70 INTERACTS = { 99 INTERACTS = {
71 "weld": InteractText(200, 200, "Laser welder"), 100 "weld": InteractNoImage(241, 310, 178, 66),
72 } 101 }
73 102
74 INITIAL = "weld" 103 INITIAL = "weld"
75 104
76 INITIAL_DATA = { 105 INITIAL_DATA = {