diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2013-01-05 17:12:31 +0000 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2013-01-05 17:12:31 +0000 |
| commit | 3e50c8f35ab3a40231498109d7401e0097fb1dd1 (patch) | |
| tree | 8dce567ffe746ab7a46d482a0ef63c994d3d9502 /weatbag/tiles/w1.py | |
| parent | 76d1149e6725ca8a59799e0c1f2112d3cbab5afb (diff) | |
Add first tile in each cardinal direction.
Diffstat (limited to 'weatbag/tiles/w1.py')
| -rw-r--r-- | weatbag/tiles/w1.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/weatbag/tiles/w1.py b/weatbag/tiles/w1.py new file mode 100644 index 0000000..6f9119e --- /dev/null +++ b/weatbag/tiles/w1.py @@ -0,0 +1,16 @@ +class Tile: + + def describe(self): + print("The trees open out onto a beautiful beach. Small waves lap at the " + "sand. Ahead of you, the ocean stretches as far as you can see.") + + def action(self, player, do): + # Nothing to do here yet. + print("Sorry, I don't understand") + + def leave(self, player, direction): + if direction=='w': + print("You've forgotten how to swim") + return False + return True + |
