comparison gamelib/scenes/cryo.py @ 119:d5f7cccfdb6c

Hook up "detail view" scenes.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 24 Aug 2010 17:04:56 +0200
parents e548f4a13741
children 48d24a48d0ce
comparison
equal deleted inserted replaced
118:e548f4a13741 119:d5f7cccfdb6c
153 } 153 }
154 154
155 INITIAL = "info" 155 INITIAL = "info"
156 156
157 157
158 class CryoTriangle(Thing):
159 "Triangle in the cryo room."
160
161 NAME = "cryo.triangle"
162
163 INTERACTS = {
164 "triangular": InteractImage(50, 50, "door_open.png"),
165 }
166
167 INITIAL = "triangular"
168
169 def interact_without(self):
170 return Result("You interacted.")
171
172 def is_interactive(self):
173 return True
174
175
176 class CryoUnitWithCorpse(Scene):
177
178 FOLDER = "cryo"
179 BACKGROUND = "cryo_room.png"
180 NAME = "cryo_detail"
181
182 SIZE = (300, 300)
183
184 def __init__(self, state):
185 super(CryoUnitWithCorpse, self).__init__(state)
186 self.add_thing(CryoTriangle())
187
188
189
158 SCENES = [Cryo] 190 SCENES = [Cryo]
191 DETAIL_VIEWS = [CryoUnitWithCorpse]