comparison gamelib/scenes/bridge.py @ 291:beb9d6935b33

Tweak bridge
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 00:09:33 +0200
parents 2ec328aeeaf8
children cfabc9daf76c
comparison
equal deleted inserted replaced
290:52404aac4e85 291:beb9d6935b33
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,
58 "A skeleton hangs improbably from the wires.",
59 (
60 (632, 148, 40, 29),
61 (683, 176, 30, 101),
62 (652, 274, 45, 96),
63 (639, 180, 11, 95),
64 ))
65 self.add_thing(self.doctor)
66
57 67
58 def enter(self): 68 def enter(self):
59 pieces = [get_music(x, prefix='sounds') for x in self.MUSIC] 69 pieces = [get_music(x, prefix='sounds') for x in self.MUSIC]
60 background_playlist = PlayList(pieces, random=True, repeat=True) 70 background_playlist = PlayList(pieces, random=True, repeat=True)
61 change_playlist(background_playlist) 71 change_playlist(background_playlist)
144 'stethoscope': InteractImage(650, 178, 'hanging_stethoscope.png'), 154 'stethoscope': InteractImage(650, 178, 'hanging_stethoscope.png'),
145 } 155 }
146 156
147 INITIAL = 'stethoscope' 157 INITIAL = 'stethoscope'
148 158
159 def get_description(self):
160 return "A stethoscope hangs from the neck of the skeleton"
161
149 def interact_without(self): 162 def interact_without(self):
150 self.state.add_inventory_item('stethoscope') 163 self.state.add_inventory_item('stethoscope')
151 self.scene.remove_thing(self) 164 self.scene.remove_thing(self)
165 # Fill in the doctor's rect
166 self.scene.doctor.rect.append(self.rect)
152 return Result("You pick up the stethoscope and verify that the doctor's " 167 return Result("You pick up the stethoscope and verify that the doctor's "
153 "heart has stoped. Probably a while ago.") 168 "heart has stoped. Probably a while ago.")
154 169
155 170
156 class Superconductor(Item): 171 class Superconductor(Item):