From 7ff92bdf14596c9f808fc5c13bb1364b18265d3c Mon Sep 17 00:00:00 2001 From: Dinko Galetic Date: Tue, 08 Jun 2010 23:08:40 +0000 Subject: Added some variables (directions and two items from a room). --- (limited to 'library') 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"] + -- cgit v0.9.1