Mercurial > boomslang
view gamelib/scenes/engine.py @ 243:0ea4661d134c
Show close button area in helper
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Fri, 27 Aug 2010 13:01:42 +0200 |
parents | 12c4f87ea424 |
children | cc478e3a951e |
line wrap: on
line source
"""Engine room where things need to be repaired.""" from gamelib.state import Scene, Item, Thing, InteractText, Result from gamelib.scenes.scene_widgets import Door class Engine(Scene): FOLDER = "engine" BACKGROUND = None # TODO INITIAL_DATA = { 'accessible': True, } def __init__(self, state): super(Engine, self).__init__(state) self.add_thing(ToMap()) def enter(self): return Result("Somewhere in the darkness the engine waits and bides its time.") class ToMap(Door): NAME = "engine.tomap" INTERACTS = { "door": InteractText(100, 200, "To Map"), } INITIAL = "door" SCENES = [Engine]