Untitled
unknown
plain_text
a year ago
3.6 kB
5
Indexable
import time # Introduction to the game def intro(): print("Welcome to the Korean Mythology Adventure Game!") print("You find yourself in ancient Korea, filled with mythical creatures and legendary heroes.") print("Your mission is to embark on a journey, overcome challenges, and uncover the secrets of Korean mythology.") print("Let the adventure begin!\n") time.sleep(2) start() # Start of the game def start(): print("\nYou wake up in a small village surrounded by mountains.") print("You see two paths ahead.") print("1. Follow the path to the forest.") print("2. Climb up the mountain.") choice = input("Enter your choice (1 or 2): ") if choice == "1": forest() elif choice == "2": mountain() else: print("Invalid choice. Please try again.") start() # Forest location def forest(): print("\nYou enter the mystical forest.") print("You hear strange noises echoing through the trees.") print("You see a glowing object in the distance.") print("1. Approach the glowing object.") print("2. Continue exploring the forest.") choice = input("Enter your choice (1 or 2): ") if choice == "1": print("\nYou approach the glowing object and find a magical artifact!") print("Congratulations! You have found the Amulet of Seonnyeo.") print("This amulet will protect you on your journey.") time.sleep(2) start() elif choice == "2": print("\nYou continue exploring the forest.") print("Suddenly, you encounter a fearsome tiger!") print("You must fight or flee.") fight_or_flee() else: print("Invalid choice. Please try again.") forest() # Mountain location def mountain(): print("\nYou start climbing the steep mountain.") print("The air becomes thinner as you ascend.") print("You reach a narrow ledge overlooking a valley.") print("1. Continue climbing.") print("2. Explore the ledge.") choice = input("Enter your choice (1 or 2): ") if choice == "1": print("\nYou continue climbing higher and higher.") print("Suddenly, a powerful gust of wind knocks you off the mountain!") print("You fall into a deep ravine.") print("Game Over. You failed to reach the summit.") elif choice == "2": print("\nYou explore the ledge and find an ancient shrine.") print("Inside the shrine, you discover a scroll containing ancient wisdom.") print("You feel enlightened and gain insight into your quest.") time.sleep(2) start() else: print("Invalid choice. Please try again.") mountain() # Fight or flee encounter def fight_or_flee(): print("\n1. Fight the tiger.") print("2. Flee deeper into the forest.") choice = input("Enter your choice (1 or 2): ") if choice == "1": print("\nYou bravely confront the tiger!") print("After a fierce battle, you emerge victorious.") print("You gain the respect of the forest spirits.") time.sleep(2) start() elif choice == "2": print("\nYou run deeper into the forest, hoping to evade the tiger.") print("You stumble upon a hidden cave and take refuge inside.") print("You hear the tiger roar in frustration outside.") print("After some time, the tiger leaves.") time.sleep(2) start() else: print("Invalid choice. Please try again.") fight_or_flee() # Run the game intro()
Editor is loading...
Leave a Comment