comparison gamelib/scenes/bridge.py @ 293:4012d50a4674

more spelling and full stops
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 28 Aug 2010 00:22:16 +0200
parents cfabc9daf76c
children 6d93e04036c9
comparison
equal deleted inserted replaced
292:cfabc9daf76c 293:4012d50a4674
44 self.add_thing(StethoscopeThing()) 44 self.add_thing(StethoscopeThing())
45 self.add_thing(BridgeComputer()) 45 self.add_thing(BridgeComputer())
46 self.add_thing(LeftLights()) 46 self.add_thing(LeftLights())
47 self.add_thing(RightLights()) 47 self.add_thing(RightLights())
48 self.add_thing(GenericDescThing('bridge.wires', 1, 48 self.add_thing(GenericDescThing('bridge.wires', 1,
49 "The brightly coloured wires contrast with the drab walls", 49 "The brightly coloured wires contrast with the drab walls.",
50 ((46, 4, 711, 143),))) 50 ((46, 4, 711, 143),)))
51 self.add_thing(GenericDescThing('bridge.note', 2, 51 self.add_thing(GenericDescThing('bridge.note', 2,
52 "\"Dammit JIM, I'm a doctor, not an engineer\"", 52 "\"Dammit JIM, I'm a doctor, not an engineer!\"",
53 ( 53 (
54 (491, 494, 194, 105), 54 (491, 494, 194, 105),
55 (422, 533, 71, 66), 55 (422, 533, 71, 66),
56 ))) 56 )))
57 self.doctor = GenericDescThing('bridge.skel', 3, 57 self.doctor = GenericDescThing('bridge.skel', 3,
67 67
68 def enter(self): 68 def enter(self):
69 pieces = [get_music(x, prefix='sounds') for x in self.MUSIC] 69 pieces = [get_music(x, prefix='sounds') for x in self.MUSIC]
70 background_playlist = PlayList(pieces, random=True, repeat=True) 70 background_playlist = PlayList(pieces, random=True, repeat=True)
71 change_playlist(background_playlist) 71 change_playlist(background_playlist)
72 return Result("The bridge is in a sorry, shabby state") 72 return Result("The bridge is in a sorry, shabby state.")
73 73
74 def leave(self): 74 def leave(self):
75 change_playlist(None) 75 change_playlist(None)
76 76
77 77
155 } 155 }
156 156
157 INITIAL = 'stethoscope' 157 INITIAL = 'stethoscope'
158 158
159 def get_description(self): 159 def get_description(self):
160 return "A stethoscope hangs from the neck of the skeleton" 160 return "A stethoscope hangs from the neck of the skeleton."
161 161
162 def interact_without(self): 162 def interact_without(self):
163 self.state.add_inventory_item('stethoscope') 163 self.state.add_inventory_item('stethoscope')
164 self.scene.remove_thing(self) 164 self.scene.remove_thing(self)
165 # Fill in the doctor's rect 165 # Fill in the doctor's rect