Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorDinko Galetic <dgaletic@everflame.(none)>2010-06-08 23:08:40 (GMT)
committer Dinko Galetic <dgaletic@everflame.(none)>2010-06-08 23:08:40 (GMT)
commit7ff92bdf14596c9f808fc5c13bb1364b18265d3c (patch)
treefabfebc4b5fcb669c0cdc5c952efdac6436d9db1 /library
parent8b1d363fedc33716bee321b8878175f66322321d (diff)
Added some variables (directions and two items from a room).
Diffstat (limited to 'library')
-rw-r--r--library/pippy/scholar/scholar.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/library/pippy/scholar/scholar.py b/library/pippy/scholar/scholar.py
index cc01b2f..3012021 100644
--- a/library/pippy/scholar/scholar.py
+++ b/library/pippy/scholar/scholar.py
@@ -161,3 +161,27 @@ def game_loop():
save()
print "Goodbye!"
+
+
+# Make instances for each direction
+West = Direction("west")
+East = Direction("east")
+South = Direction("south")
+North = Direction("north")
+Northwest = Direction("northwest")
+Southwest = Direction("southwest")
+Southeast = Direction("southeast")
+Northeast = Direction("northeast")
+Up = Direction("up")
+Down = Direction("down")
+
+####
+# Create some objects. They are placed in rooms when rooms are created
+# in create_some_rooms() (called from game_loop()).
+starting_painting = Game_object()
+starting_painting.description = "This is a painting of a young couple lying on the grass and hugging. Their eyes are of an extraordinary blue colour. The artist has really managed to capture the look of love on their faces. Oddly, the painting seems to be hanging upside down. On a more careful look, however, you realise that it was painted like this."
+starting_painting.aliases = ["painting"]
+starting_bed = Game_object()
+starting_bed.description = "A cozy bed. The maids make it and put fresh sheets each morning."
+starting_bed.aliases = ["bed"]
+