First version ready
This commit is contained in:
BIN
adventure/seafloor/sunken_ship/galley/.ghost.py.swp
Normal file
BIN
adventure/seafloor/sunken_ship/galley/.ghost.py.swp
Normal file
Binary file not shown.
17
adventure/seafloor/sunken_ship/galley/ghost.py
Normal file
17
adventure/seafloor/sunken_ship/galley/ghost.py
Normal file
@@ -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.")
|
5
adventure/seafloor/sunken_ship/ship.txt
Normal file
5
adventure/seafloor/sunken_ship/ship.txt
Normal file
@@ -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.
|
14
adventure/seafloor/sunken_ship/stateroom/desk.py
Normal file
14
adventure/seafloor/sunken_ship/stateroom/desk.py
Normal file
@@ -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.")
|
Reference in New Issue
Block a user