diff --git a/adventure/seafloor/coral_reef/.chest.py.swp b/adventure/seafloor/coral_reef/.chest.py.swp new file mode 100644 index 0000000..041bbb3 Binary files /dev/null and b/adventure/seafloor/coral_reef/.chest.py.swp differ diff --git a/adventure/seafloor/coral_reef/chest.py b/adventure/seafloor/coral_reef/chest.py new file mode 100644 index 0000000..17de72b --- /dev/null +++ b/adventure/seafloor/coral_reef/chest.py @@ -0,0 +1,18 @@ +# This is a Python program. You should run it by typing "chest.py" + +from urllib.request import urlretrieve + +secret = "381" + +print(" You approach the chest and see that the lock is surprisingly free of rust.") +print(" In fact, the code dials turn smoothly. Try entering a code.") + +guess = input(" > ") + +if guess == secret: + print(" The chest snaps open, releasing several huge air bubbles.") + print(" You look into the chest and see...") + urlretrieve("http://chrisproctor.net/images/fork.png", "treasure.png") +else: + print(" nothing happens. Maybe next time.") + diff --git a/adventure/seafloor/coral_reef/reef.txt b/adventure/seafloor/coral_reef/reef.txt new file mode 100644 index 0000000..ed6ef7d --- /dev/null +++ b/adventure/seafloor/coral_reef/reef.txt @@ -0,0 +1,4 @@ + You are standing at the edge of a beautiful coral reef. Schools of fish are + swirling around you in every direction. In front of you is a deep chasm + where you see larger fish sliding through the shadows. There is a chest + half-buried in the seafloor. diff --git a/adventure/seafloor/seafloor.txt b/adventure/seafloor/seafloor.txt new file mode 100644 index 0000000..9ea297c --- /dev/null +++ b/adventure/seafloor/seafloor.txt @@ -0,0 +1,7 @@ + After several moments of peaceful floating, you make a gentle landing on + the seafloor, several hundered meters away from the sunken ship. You appear + to be at the edge of a plateau whose edges are encrusted with beautiful + corals. + + Both sunken_ship and coral_reef are directories, so use the "cd" command + to go into whichever one you want. diff --git a/adventure/seafloor/sunken_ship/galley/.ghost.py.swp b/adventure/seafloor/sunken_ship/galley/.ghost.py.swp new file mode 100644 index 0000000..2de728e Binary files /dev/null and b/adventure/seafloor/sunken_ship/galley/.ghost.py.swp differ diff --git a/adventure/seafloor/sunken_ship/galley/ghost.py b/adventure/seafloor/sunken_ship/galley/ghost.py new file mode 100644 index 0000000..72cbed6 --- /dev/null +++ b/adventure/seafloor/sunken_ship/galley/ghost.py @@ -0,0 +1,17 @@ + +# This is a Python file. You can run it by typing "python ghost.py" + +from pathlib import Path + +if Path("key.txt").exists(): + print(" The ghost glances over at you. 'I hope you find some use for that key.'") +else: + print(" You enter the cramped galley and notice a sad, lonely ghost wandering") + print(" around. You always wondered if you would be afraid of ghosts, but") + print(" somehow this feels completely normal. The ghost begins to speak.") + print("") + print(" 'It has been a long while since I have seen anybody down here,' she says") + print(" 'I would like to give you a gift. Here's a key.'") + + with open("key.txt", "w") as keyfile: + keyfile.write(" Even in the faint light of your lamp, the key has a golden gleam.") diff --git a/adventure/seafloor/sunken_ship/ship.txt b/adventure/seafloor/sunken_ship/ship.txt new file mode 100644 index 0000000..6643b8b --- /dev/null +++ b/adventure/seafloor/sunken_ship/ship.txt @@ -0,0 +1,5 @@ + The sunken ship is lying on the seafloor at a slight angle. From the remains + of its masts and rigging, you can tell it's from the age before ships were made + of steel and powered by engines. You climb up in the deck, and see a large hole + allowing access to the inner chambers. You flick on your suit's light and + go inside. diff --git a/adventure/seafloor/sunken_ship/stateroom/desk.py b/adventure/seafloor/sunken_ship/stateroom/desk.py new file mode 100644 index 0000000..3785648 --- /dev/null +++ b/adventure/seafloor/sunken_ship/stateroom/desk.py @@ -0,0 +1,14 @@ +# This is a Python program. You can run it by typing "python desk.py" + +from pathlib import Path + +print(" The stateroom contains the ruins of an elegant office. Scraps of wallpaper") +print(" are peeling from the wall; there is an eel living in the chandelier.") +print(" There is a huge desk at the center of the room.") + +if Path("../galley/key.txt").exists(): + print(" You try your key in the desk drawer, and it clicks open. There are") + print(" many decaying pieces of paper. One has the numbers 318 written in") + print(" a fine script.") +else: + print(" You try to open the desk's drawer, but it is firmly locked.") diff --git a/adventure/sinking.txt b/adventure/sinking.txt index f620bce..d9dc56b 100644 --- a/adventure/sinking.txt +++ b/adventure/sinking.txt @@ -1,7 +1,9 @@ - As you are lowered off the edge of the research boat, you wave goodbye to your friends. The diving suit is tight and stiff, and your vision is limited to the round window in front of you. Your head goes below water, and the sharp details of the boat are replaced by a wash of blues and greens. Below you is an endless expanse of water. You can just barely see the sunken ship on the seafloor. You relax, allowing your body to gently float down... + + To continue, you need to go into the seafloor directory by typing + "cd seafloor". Once you're there, type "ls" to see what's inside.