Untitled
unknown
plain_text
10 months ago
2.2 kB
6
Indexable
import time
# Game introduction
def intro():
print("You find yourself in a dark, eerie forest.")
print("A chill runs down your spine as you hear strange noises all around you.")
time.sleep(2)
print("You see a path leading deeper into the forest. Do you dare to venture forth?")
# First decision
def first_decision():
print("\nDo you want to:")
print("1. Venture deeper into the forest")
print("2. Turn back and run away")
choice = input("> ")
if choice == "1":
forest_path()
elif choice == "2":
run_away()
else:
print("Invalid choice. Try again.")
first_decision()
# Forest path scenario
def forest_path():
print("\nYou cautiously move forward, the darkness swallowing you whole.")
time.sleep(2)
print("Suddenly, you hear a loud growl behind you!")
print("Do you want to:")
print("1. Run")
print("2. Turn around and face the danger")
choice = input("> ")
if choice == "1":
run_away()
elif choice == "2":
face_danger()
else:
print("Invalid choice. Try again.")
forest_path()
# Run away scenario
def run_away():
print("\nYou sprint back the way you came, heart pounding in your chest.")
time.sleep(2)
print("You barely escape the forest, but the terror will haunt you forever.")
print("GAME OVER")
# Face danger scenario
def face_danger():
print("\nYou turn around, ready to confront whatever is behind you.")
time.sleep(2)
print("A monstrous creature with glowing red eyes leaps at you!")
print("Do you want to:")
print("1. Fight")
print("2. Flee")
choice = input("> ")
if choice == "1":
fight_creature()
elif choice == "2":
run_away()
else:
print("Invalid choice. Try again.")
face_danger()
# Fight creature scenario
def fight_creature():
print("\nYou gather your courage and prepare to fight the creature.")
time.sleep(2)
print("With a swift move, you defeat the creature and survive the ordeal.")
print("CONGRATULATIONS! You have conquered your fear.")
print("GAME OVER")
# Start the game
intro()
first_decision()
Editor is loading...
Leave a Comment