Browse files

added cave pictures

  • Loading branch information...
1 parent 26f6b6b commit 80479ceba78105c9c912176a49c5007d6e475a6a @larsr committed Jun 1, 2011
Showing with 6 additions and 3 deletions.
  1. +1 −1 app.yaml
  2. BIN img/cave.jpg
  3. BIN img/cave2.jpg
  4. +5 −2 link.py
View
2 app.yaml
@@ -1,5 +1,5 @@
application: legend-of-link
-version: 3
+version: 4
runtime: python
api_version: 1
View
BIN img/cave.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN img/cave2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 link.py
@@ -116,7 +116,11 @@ def link(namn=""):
image = "pier2"
elif room == "mountain":
image = "Mountain"
-
+ elif room == "cave":
+ if not "hole" in map[room]:
+ image = "cave"
+ else:
+ image = "cave2"
if not image == None:
outp = get_output()
myprint("<@@img@@='img/%s.jpg'@@width@@='500px'>" % image)
@@ -239,7 +243,6 @@ def link(namn=""):
else:
myprint( "You found a secret passage!" )
map["cave"].append("hole")
- map["hole"].append("cave")
if len(command) == 2 and command[0] == "read" and command[1] == "note":
if "note" in inv:
myprint( "The note says:" )

0 comments on commit 80479ce

Please sign in to comment.