This repository was archived by the owner on Jun 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShadow Paths 0.3.0.py
More file actions
192 lines (163 loc) · 6.34 KB
/
Copy pathShadow Paths 0.3.0.py
File metadata and controls
192 lines (163 loc) · 6.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# This script was made by ShadowDara
# https://github.com/shadowdara
import time
import os
food = 3
little_creature_v = False
skript_verzeichnis = os.path.dirname(os.path.abspath(__file__))
def print_slowly(text, delay=0.03):
for char in text:
print(char, end='', flush=True)
time.sleep(delay)
print()
def start_game():
print(" Folder path:", skript_verzeichnis)
print_slowly("\n Launching Version 0.3.0 of Shadow Paths!")
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Shadow Paths
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
choice1 = input(" Type START to start the Game: ")
if choice1 == 'START':
level1()
def level1():
print_slowly(" \n You find yourself in an unfamiliar world.")
print_slowly(" You realize that you have lost all your memories.")
print_slowly("\n Your heart races as you understand that you are not alone in this strange place.")
start_path()
def start_path():
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Crossroads
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
print_slowly(" There are two paths in front of you, each leading to a different fate:\n")
print_slowly(" 1. A dark forest to your left, where the trees loom like giants and shadows dance ominously.")
print_slowly(" 2. A long Road right, bathed in sunlight and filled with the sounds of chirping birds.")
print_slowly(" 3. Do nothing")
choice2 = input("\n Which path will you take? (1/2/3): ")
if choice2 == '1':
dark_forest()
elif choice2 == '2':
the_road()
elif choice2 == '3':
dinosaur()
else:
error()
start_path()
def dark_forest():
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Dark Forest
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
print_slowly(" You step into the dark forest.")
print_slowly(" Suddenly, you hear a rustling sound...")
print_slowly("\n Do you want to:")
print_slowly(" 1. Investigate the sound.")
print_slowly(" 2. Run back to the path.")
choice4 = input("\n What will you do? (1/2): ")
if choice4 == '1':
if little_creature_v == False:
little_creature()
else:
print_slowly(" You can not find out where the sound is coming from.")
input(" ...")
print_slowly(" So you decide to go back.")
start_path()
elif choice4 == '2':
print_slowly("\n You quickly retreat and find yourself back at the fork in the road.")
start_path()
else:
error()
dark_forest()
def little_creature():
print_slowly(" \nYou bravely approach the sound and discover a little creature...")
print_slowly("\n What do you want to do?\n")
print_slowly(" 1. Feed the creature")
print_slowly(" 2. go back")
print_slowly(" 3. Watch the little creature")
choice5 = input("\n What will you do? (1/2/3): ")
if choice5 == '1':
feed_creature()
elif choice5 == '2':
print_slowly(" You decided to go back.")
dark_forest()
elif choice5 == '3':
print_slowly(" You are fascinated by the little creature.")
print_slowly(" You don't know anymore how long you've been watching.")
wolf()
else:
error()
little_creature()
def feed_creature():
global food, little_creature_v
print_slowly("\n Do you really want to feed the creature?\n")
print_slowly(f" This will cost 1 food. You have {food} food.")
print_slowly("\n 1. Feed the creature")
print_slowly(" 2. Go back")
choice6 = input("\n What will you do? (1/2): ")
if choice6 == '1':
if food > 0:
food -= 1
little_creature_v = True
print_slowly("\n You feed the creature.")
print_slowly(f"\n You have {food} food remaining.")
print_slowly("\n The little creature eats your food.")
print_slowly(" You got a new friend!")
input("\n ...")
print_slowly("\n Your follow your new friend.")
end()
else:
print_slowly("\n You don't have enough food to feed the creature.")
input("\n ...")
feed_creature()
elif choice6 == '2':
print_slowly("\n You decided to go back.")
dark_forest()
else:
error()
feed_creature()
def wolf():
print_slowly(" \n The Night falls.")
print_slowly(" \n Suddently a wolf jumps out of a Bush.")
print_slowly(" \n The Wolf attacks you, you are not able to protect yourself.")
input("\n ...")
print_slowly(" \n\n YOU DIED!")
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Game Over
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
input("\n ...")
def dinosaur():
print_slowly(" You decide to stay")
print_slowly(" However, the ground trembles beneath you as a massive dinosaur comes running towards you.")
print_slowly(" You freeze in fear, unable to escape.")
print_slowly("\n\n YOU DIED! The choice to stay and observe was your downfall.\n")
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Game Over
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
input("\n ...")
def error():
print_slowly("\n INVALID INPUT! Please choose a valid option.")
def end():
print_slowly(" \n You follow your new friend until the sun falls down.")
print_slowly("""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The End
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
print_slowly(" Credits:")
print_slowly("\n Made by ShadowDara")
print_slowly("\n https://github.com/shadowdara")
input()
def the_road():
print_slowly(" \n It's a too hot day walk directly into the sun.")
print_slowly(" You couldt survive a walk n this road!")
input("\n ...")
start_path()
start_game()