Mercurial > pyntnclick
changeset 47:8f1fccb8cadf
Skeletons for scenes in plot outline.
author | Simon Cross <simon@simonx> |
---|---|
date | Mon, 23 Aug 2010 11:47:03 +0200 |
parents | fb569d06e2cc |
children | 7debf2951a82 |
files | gamelib/scenes/bridge.py gamelib/scenes/engine.py gamelib/scenes/machine.py gamelib/scenes/map.py gamelib/scenes/mess.py gamelib/state.py |
diffstat | 6 files changed, 90 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamelib/scenes/bridge.py Mon Aug 23 11:47:03 2010 +0200 @@ -0,0 +1,16 @@ +"""Bridge where the final showdown with the AI occurs.""" + +from gamelib.state import Scene, Item, Thing + + +class Bridge(Scene): + + FOLDER = "bridge" + BACKGROUND = None # TODO + + INITIAL_DATA = { + 'accessible': True, + } + + +SCENES = [Bridge]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamelib/scenes/engine.py Mon Aug 23 11:47:03 2010 +0200 @@ -0,0 +1,16 @@ +"""Engine room where things need to be repaired.""" + +from gamelib.state import Scene, Item, Thing + + +class Engine(Scene): + + FOLDER = "engine" + BACKGROUND = None # TODO + + INITIAL_DATA = { + 'accessible': True, + } + + +SCENES = [Engine]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamelib/scenes/machine.py Mon Aug 23 11:47:03 2010 +0200 @@ -0,0 +1,16 @@ +"""Machine room where tools and machines are found.""" + +from gamelib.state import Scene, Item, Thing + + +class Machine(Scene): + + FOLDER = "machine" + BACKGROUND = None # TODO + + INITIAL_DATA = { + 'accessible': True, + } + + +SCENES = [Machine]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamelib/scenes/map.py Mon Aug 23 11:47:03 2010 +0200 @@ -0,0 +1,21 @@ +"""Neurally implanted schematic for moving around on the ship. + + It is illegal for prisoners in transit to activate such an + implant. Failure to comply carries a minimum sentence of + six months. + """ + +from gamelib.state import Scene, Item, Thing + + +class Map(Scene): + + FOLDER = "map" + BACKGROUND = None # TODO + + INITIAL_DATA = { + 'accessible': True, + } + + +SCENES = [Map]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamelib/scenes/mess.py Mon Aug 23 11:47:03 2010 +0200 @@ -0,0 +1,16 @@ +"""Mess where crew eat. Fun stuff.""" + +from gamelib.state import Scene, Item, Thing + + +class Mess(Scene): + + FOLDER = "mess" + BACKGROUND = None # TODO + + INITIAL_DATA = { + 'accessible': True, + } + + +SCENES = [Mess]
--- a/gamelib/state.py Mon Aug 23 11:39:53 2010 +0200 +++ b/gamelib/state.py Mon Aug 23 11:47:03 2010 +0200 @@ -8,6 +8,11 @@ """Load the initial state.""" state = State() state.load_scenes("cryo") + #state.load_scenes("bridge") + #state.load_scenes("mess") + #state.load_scenes("engine") + #state.load_scenes("machine") + #state.load_scenes("map") state.set_current_scene("cryo") return state