Mercurial > pyntnclick
view gamelib/scenes/engine.py @ 283:3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 23:12:34 +0200 |
parents | 3b4a78422201 |
children | 2ec328aeeaf8 |
line wrap: on
line source
"""Engine room where things need to be repaired.""" from gamelib.state import Scene, Item, Thing, Result from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage, InteractRectUnion, InteractImage, InteractAnimated, GenericDescThing) class Engine(Scene): FOLDER = "engine" BACKGROUND = "engine_room.png" 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): SCENE = "engine" INTERACTS = { "door": InteractNoImage(663, 360, 108, 193), } INITIAL = "door" SCENES = [Engine]