-
Notifications
You must be signed in to change notification settings - Fork 0
/
darkcave.py
474 lines (467 loc) · 25.1 KB
/
darkcave.py
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
#########################################
# DEV Test #
# - Complete! - #
# Bugs occur! #
#########################################
from random import *
import time
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
END = '\033[0m'
#NOTES
#print(.GREEN + "Hello World") Color text
#print (Style.RESET_ALL) Reset text
#print ('Hello World !' ) Bold text
#TODO
#Code in No section of going into the cave more
#Code in Yes section after doing everything correctly and random events
menu = True
print ("> Welcome to the Dark Cave!\n")
print ("> Type S to start" )
print ("> Type I for info" )
print ("> Type U for update info")
print ("> Type Q to quit" )
choice = input ("> ")
while menu == True:
if choice == "S":
print ("Start Game Selected")
menu = False
elif choice == "I":
print ("The Dark Cave: Created by DaveedDigs")
print ("Get ready for an awesome RPG game made to look old and also very cool!\n**Notice: Starting game after prompt!**")
input ("Press enter to start > ")
menu = False
elif choice == "U":
print ("**Please go to the GitHub to get updates as they come! https://github.com/HDLOfficial/Dark-Cave")
input ("Press Enter To Continue")
menu = False
elif choice == "Q":
print("Exiting Dark Cave!")
exit()
else:
print ("Error > Please type in S, I, U, or Q!")
choice = input ("> ")
print ("Starting Game... ")
print ("\nNOTICE: PLEASE READ THE GITHUB WIKI FOR INFO AND NO CONFUSION ABOUT THE GAME! THERE MAY BE RANDOM EVENTS THAT WILL HAPPEN THAT WILL CHANGE EVERY SINGLE GAME!\n")
input ("")
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\
# Game starts here |
#\/\/\/\/\/\/\/\/\/\/\/\/\/\/
health = 10
hunger = 10
thirst = 10
courage = 5
sanity = 7
print ("Game > The game has been loaded!")
input ("\nPress Enter to start...\n")
print ("You > 'Ugh. Where am I?'")
input ("")
print ("Game > A blinding light flashes in your eyes as you feel the trickle of water from a nearby stream run down your face. You find yourself lying on a cold rock deep down. Unable to move much because of your body aching all over, you look to the side where you see a pitch black cave area.")
input ("")
print ("Game > You hear a sound much like a horse down in the cave. It's almost like it's coming closer to you as you ask yourself why you are down in here in the first place. Although you can hear the noise, you can't quite make out the exact creature that is making that noise")
input ("")
print ("Game > After a while, you finally make the effort to stand up. You don't hear anything else except the birds chirping in the forest above.")
input ("")
choice = input ("Game > You wonder if you should take a risk into the dark cave. Type Y to explore the cave or N to stay here!\n\n> ")
valid = True
while valid == True:
if choice == "Y":
courage += 1
sanity = sanity/2
print ("Game > You bravely enter the dark area of the cave, wondering what is in the pitch black area. You want to survive, so you might as well try to find food and water. Sounds around you start to annoy you as you walk further into the cave. It's almost as... they are watching you.\n")
print ("Status > +1 Courage [Your courage is now " + str(courage) + "]")
print ("Status > -Half of your Sanity [Your sanity is now " + str(sanity) + "]")
valid = False
elif choice == "N":
courage -= 2
sanity -= 2
health -= 4
print ("Game > You decide to stay behind waiting for someone to notice that you are gone. As you wait, you kick the wall in frustration and rocks from above fall down. They hit you in the head and knock you out.\n")
print ("Status > -2 Courage [Your courage is now " + str(courage) + "]")
print ("Status > -2 Sanity [Your sanity is now " + str(sanity) + "]")
print ("Status > -4 Health [Your health is now " + str(health) + "]")
valid = False
input ("")
else:
print ("Error > Please type in Y or N!")
choice = input ("> ")
if choice == "Y":
input ("")
print ("Game > You are getting very scared as you walk further into the cave. Darkness starts to surroud you like a pool of water. It's getting colder and colder as the light fades away. You hear that horse sound you just heard earlier. You walk in the direction that the sound came from. Of course with your luck, this is the exact opposite way of the light.")
input ("")
print ("Game > You start to wonder if this is a good idea when suddenly this raindowish creature appears out of the dark. You believe that this is where the sound came from so you use your best judgement to identify the creature.")
input ("")
print ("You > 'Good horsey...'")
input ("")
print ("??? > Nheheheh")
input ("")
choice2 = input ("Game > It seems to be waiting for you to identify it correctly. Type what it is! (Please type all letters in capital)\n")
if choice2 == "UNICORN":
sanity += 1
courage += 2
trust = 1
print ("Game > By its delighted expression, you must've gotten it correct. You feel acomplishment as it throws you on its back. You feel safer and more stable!\n")
print ("Status > +2 Courage [Your courage is now " + str(courage) + "]")
print ("Status > +1 Sanity [Your sanity is now " + str(sanity) + "]")
print ("Status > [Special] Trust from mythical creatures")
#+1 sanity
#+2 courage
#+Possible army of Tems --Request--
input ("")
else:
print ("Game > The creature backs away in horror as you identified it. It seems to be that it hides in the dark. As it disappears, you get a sick feeling in your stomach.")
input ("")
print ("Game > A bunch of creatures come out of the dark, but the creature is no where to be seen. You feel where that sick feeling comes from when you see the demon eyes on them. A storm is brewing!")
input ("")
print ("??? > 'ARGHGHGH'")
input ("")
print ("Game > After a short battle of you harmlessly whapping the creatures, you finally lay down, and take your final look at the world.\n")
time.sleep(1)
print (" GAME OVER ")
print (" 'Those little creatures wouldn't let you go'")
exit()
elif choice == "N":
print ("Game > After those hard hits on the head by the rocks, you seem a bit hungry. You see a tree branch up above that has berries on it. It looks close enough that you can reach it by climbing up the rocks. Still not enough to get out but you need food to survive.")
surviven = randint(1, 2)
input ("")
survivei = input ("Game > Will you take the risk of grabbing the berries to replenish your hunger? (Your hunger is at 5) Type 1 for a chance to get up, 2 for a chance to get up, and N to stay down:\n> ")
thirst == 7
if str(survivei) == str(surviven):
print ("Game > You jump up to the berries pulling on branches to get up. As you start picking berries from the branch, you can see there is enough to replenish your hunger.\n")
hunger = 10
thirst += 2
print ("Status > +5 Hunger [Your hunger is now " + str(hunger) + "]")
print ("Status > +2 Thirst [Your thirst is now " + str(hunger) + "]")
if hunger == 10:
print ("Status > Your hunger has been replenished!")
input ("")
else:
input ("")
elif survivei == "N":
print ("Game > Cowardly actions overpower you as you back away from underneath the berries. You wonder if that was the right choice as you sit on the side of the cave, super hungry and thirsty.\n")
sanity -= 2
courage -= 2
thirst -= 2
hunger = 2
print ("Status > -3 Hunger [Your hunger is now " + str(hunger) + "]")
print ("Status > -2 Thirst [Your thirst is now " + str(thirst) + "]")
print ("Status > -2 Courage [Your courage is now " + str(courage) + "]")
print ("Status > -2 Sanity [Your sanity is now " + str(sanity) + "]")
input ("")
else:
print ("Game > As you try to jump up to where the berries are sitting, your foot slips on a wet rock. As you fall down from a height, your life flashes be your eyes. You hit the cold hard ground, breathing heavily, you close your eyes trying to avoid the pain.")
input ("")
print ("You feel your last moments creeping up to you...")
time.sleep(2)
print (" GAME OVER ")
print (" 'Better footwork is the key' ")
exit()
print ("Game > You sit against the wall again, just waiting for a miracle to happen.")
input ("")
print ("Game > Suddenly you see a creature appear from the cave. It does not look nice.")
input ("")
fight = input ("Game > Would you like to fight, play dead, or run (Type F to fight, D to play dead, and R to run)\n> ")
if fight == "F":
print ("Fight")
##Continue Fighting Technique
elif fight == "D":
print ("Game > Playing dead seems like the most logical option at this point. You flop down on the ground, hurting your arm.")
input ("")
react = input ("Game > Do you want to treat the sore on your arm or leave it be (Type T to treat the sore or L to leave it be)")
if react == "T":
print ("Game > You decide to treat the sore before it really hurts you. Careful that the creature doesn't spot movement, you act like the movement is gravity.\n")
health += 1
print ("Status > +1 Health [Your health is now " + str(health) + "]")
input ("")
print ("Game > It looks shocked and moves forward slowly.")
input ("")
print ("Game > The creature stops at you, wondering what happened when you moved.")
elif react == "L":
print ("Game > You leave the sore be, knowing that the creature may spot that you are alive if you try to guard your arm from the rigid rock.\n")
health -= 2
print ("Status > -2 Health [Your health is now " + str(health) + "]")
input ("")
print ("Game > The creature comes closer to you. Step by step it growls.")
input ("")
print ("Game > You start to worry, your heart pounding as it walks inches from you.")
input ("")
print ("Game > It smells you, looking like it's checking if you are alive.")
input ("")
print ("Game > It backs away causiously, making sure you are still not alive")
input ("")
#Continue
elif fight == "R":
print ("Game > You choose the cowardly path of running into the cave to survive.")
input ("")
##Continue on a elif statement, 1st indent, choice P
choice = "P"
# #
#------------------------------------------------#
# After Y/N/P choice has been made - continue on #
#------------------------------------------------#
# #
if choice == "Y":
hunger = 4
print ("Game > You continue walking into the dark cave. It's getting more humid as you go farther in!")
input ("")
print ("You > 'It's too dark and humid to keep trotting along. But if I stop here, I may starve'")
input ("")
choice2 = input ("Game > You can either stop for safety, or keep going to find food. Type S to stop here and type G to keep going.\n> ")
if choice2 == "S":
print ("Game > You decide to stop to avoid running into more trouble. You get off the unicorn and sit on the cold stone ground. You feel a sharp object underneath you. As you get up and shine your phone towards it, you see that it's a locked bag.\n")
hunger -= 1
courage -= 1
print ("Status > -1 Courage [Your courage is now " + str(courage) + "]")
print ("Status > -1 Hunger [Your courage is now " + str(hunger) + "]")
input ("")
bag = input ("Do you want to open the bag even though it may hurt your fingers trying to pry it open? Type Y to open it and N to leave it be.\n> ")
if bag == "Y":
health -= 2
print ("Game > You pry the bag open with your fingers, you feel a small pain in your fingers.\n")
print ("Status > -2 Health [Your health is now " + str(health) + "]")
input ("Press enter to open the bag\n")
fsupply = 1
wsupply = 1
knife = 1
print ("Item > Bread 'A little moldy on the outside'")
print ("Item > Bottled Water 'Mmmm... Warm water'")
print ("Item > Butter Knife 'Still a little buttery'")
hunger += 3
print ("Status > +3 Hunger [Your hunger is now " + str(hunger) + "]")
##Add health and also thirst
input ("")
print ("Game > You sit in this place for what seems like hours, even though it is just 5 minutes. You hear another sound in the distance as your phone light flickers out.")
input ("")
print ("??? > YaYA")
input ("")
print ("You > 'What is that... Ehh, it must be my imagination'")
input ("")
print ("Game > Minutes pass one by one and you can't keep your mind off of that sound that came. You start to feel worried, biting on side of the bag.")
input ("")
print ("??? > YaH")
input ("")
print ("Game > A creature comes out of the darkness only to pass you, go back into the darkness, and scare the heeby geebies out of you. You don't know whether to attack it, or leave it be.")
input ("")
choice3 = input ("Type A to attack or P to leave it be\n> ")
if choice3 == "P":
print ("Game > You decide to leave it be, but your pet unicorn runs into the darkness to the creature.")
input ("")
print ("Game > You see sparks in the distance. You can't see what is making the sparks.")
input ("")
choice4 = input ("Do you want to run in the other direction, or find out what the sparks are from? (Type R to run or I to find out)\n> ")
event = randint(1, 2)
if str(event) == "1" and choice4 == "R":
print ("Game > You try to run, but falling crush you as you run. You try to regret your choice as you are being turned into a breakfast food.")
time.sleep(2)
print (" GAME OVER ")
print (" '*Just a random event*' ")
exit()
elif str(event) == "2" and choice4 == "R":
print ("Game > You run, leaving your pet unicorn behind. You just need to survive. A guilty feeling overtakes you, as you fall down on the group breathing heavily.")
courage -= 2
sanity -= 2
print ("Status > -2 Courage [Your courage is now " + str(courage) + "]")
print ("Status > -2 Sanity [Your sanity is now " + str(sanity) + "]")
##Continue
elif str(event) == "1" and choice4 == "I":
health -= 3
print ("Game > You slowly creep forward to the sparks. A bat comes from the darkness and slaps you in the head. You fall to the cold ground, with an aching pain on the side of your cheek.")
print ("Status > -3 Health [Your health is now " + str(health) + "]")
input ("")
print ("Game > With that bat scaring you, you decide to leave the area.")
elif str(event) == "2" and choice4 == "I":
print ("Game > You creep closer and closer to the place where the sparks came from. Another bunch of sparks explodes closer than you think they did before. You see your pet unicorn, fighting this creature, which is still undescribable to you.")
input ("")
print ("Game > As a person who doesn't like violence, you want to tame the new creature. ")
input ("")
print ("Game > You feel like you want to try what you did before with the unicorn to tame it, but you don't have any idea what this thing is. You decide to do what all people would do in meeting something.")
input ("")
print ("You > 'Um, Hi?'")
input ("")
print ("It looks at you in confusion. Maybe it doesn't speak English. The creature looks like it is going to say something.")
input ("")
print ("??? > HoOmAN?")
input ("")
print ("Game > You think it's saying 'human?' but you are not too sure since you are tired.")
input ("")
print ("??? > TeM. TeM mEeT HoOmAN.")
input ("")
print ("Game > You feel very scared that this creature thing, calling itself tem, it actually communicating with you. You very carefully back away inch by inch. It steps forward as you move back.")
tame = input ("Game > Try to do the same as you did with the unicorn, by identifing it.\n> ")
if tame.lower() == "tem":
print ("Game > The creature, known as tem, looks happy! You're 2 for 2 today!")
input ("")
print ("Game > You let out a sigh of relief. Your unicorn and a tem is here. It can't get much weirder than this for you.")
input ("")
print ("Game > The tem speaks to you again in its high pitched voice.")
input ("")
print ("Tem > HoOmAN sTUcK. TeM cAN hElP.")
input ("")
print ("Game > Once again, you feel weird talking to a creature, but it may be your only way out.")
time.sleep(1)
print ("Status > [Special] Tem")
input ("")
print ("You > Ok...")
input ("")
print ("Game > You wait as the 'Tem' runs back into the darkness.")
input ("")
print ("Game > Time passes and you still don't see the 'Tem' again.")
input ("")
print ("Game > You hear a sound, then more sounds, then lots more sounds surrounding you.")
input ("")
final = input ("Game > Do you want to hide or face all of the sounds that seem to be coming to you? (Type H to hide and F to face the sounds)\n> ")
if final == "H":
print ("Game > You scramble to find a hiding place. You feel safer that you are not in danger anymore from the many sounds that were coming to you.")
elif final == "F":
print ("Game > You decide to face the sounds coming for you, in the chance that they are friendly creatures.")
input ("")
rocks = randint(1,2)
if str(rocks) == "1":
print ("Game > You finally see the first glances of the creatures. You see that it is a 'tem', and another 'tem', annnd another 'tem'. There is an army of about 50 'tems' surrounding you.")
print ("TeMs > TeMs s...")
time.sleep(2)
print ("Game > Right as the 'tems' start to speak, rocks from above crush you!")
print ("TeMs > NuuUuU")
time.sleep(2)
print (" GAME OVER ")
print (" 'Random Events!' ")
exit()
elif str(rocks) == "2":
print ("Game > You finally see the first glances of the creatures. You see that it is a 'tem', and another 'tem', annnd another 'tem'. There is an army of about 50 'tems' surrounding you.")
input ("")
print ("TeMs > TeMs sAVe!!!")
input ("")
print ("Game > The 'tems' move closer to you. You now feel very worried and scared. Are they actually helping you?")
input ("")
print ("Game > They suddenly leap forward to you. Normally you would shreak, but you feel trust in these creatues.")
input ("")
print ("Game > In a blinding amount of white fur, you feel yourself moving.")
input ("")
print ("Game > Moving fast now, you feel more confident about your survival.")
input ("")
print ("Game > Soon you feel a big rush of air on your face. You must be outside of the cave!")
input ("")
if bag == "Y":
print ("Game > The creatures disband and you fall down on the cold green grass. You let out a sign of relief.")
input ("")
print ("Game > You turn your head to where you came from and the creatures are no where to be seen.")
input ("")
print ("Game > You wonder if it was all a dream and you didn't fall down the cave.")
input ("")
believe = input("Game > Do you believe that it was all a dream (Type Y for yes and N for no)\n> ")
if believe == "Y":
print ("Game > It seems crazy, but you believe that it all happened.")
input ("")
print ("Game > You on your back, letting out a heavy sigh of relief.")
input ("")
print ("After a while, you decide to walk away, with a bag clipped on your pants pocket.")
time.sleep(2)
print ("You Win!")
print ("You got the 'Believer of All Things' ending")
time.sleep(3)
ending = input("Game > Do you want to see the choices that affected your ending a lot? (Type Y for yes and N for no)\n> ")
if ending == "Y":
print ("Choices that affected your game:")
print ("Going into the cave (Y)\n")
print ("Thank you for playing Dark Cave!")
else:
print ("Thank you for playing Dark Cave!")
time.sleep(1)
print ("Credits:")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
##PUT REAL CREDITS
input ("")
exit()
else:
print ("Game > It seems crazy, too crazy to believe. You are just glad that you are not trapped anymore")
input ("")
print ("Game > You lay down on the cool grass of the forest. It starts sprinkling and you decide to get up.")
input ("")
print ("Game > You start walking back to your home and you hear a crunch of the few leaves on the ground.")
input ("")
print ("Game > You look behind you and there is nothing there. You shrug it off thinking there are better things to do than think about what jsut happened.")
time.sleep(2)
print ("You Win!")
print ("You got the 'Lost in my Mind' ending")
time.sleep(3)
ending = input("Game > Do you want to see the choices that affected your ending a lot? (Type Y for yes and N for no)\n> ")
if ending == "Y":
print ("Choices that affected your game:")
print ("Going into the cave (Y)\n")
print ("Thank you for playing Dark Cave!")
else:
print ("Thank you for playing Dark Cave!")
time.sleep(1)
print ("Credits:")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
time.sleep(.3)
print ("Operations Director >>> DaveedDigs")
##PUT REAL CREDITS
input ("")
exit()
else:
print ("Incorrect")
##Continue
elif choice3 == "A":
if bag == "Y":
print ("Game > You grab your water bottle and slash the creature across the face, its head turning on impact.")
input ("")
else:
print ("Game > You whap the creature in the face with your hand, trying to hurt it. Its head turns on impact.")
input ("")
print ("Game > It turns back to face you, its smile still plastered on its face. You can still see it's white fur bristle.")
time.sleep(1)
print ("Game > Then, without warning, it screams.")
input ("")
print ("??? > TeMs")
time.sleep(1)
print ("??? > BAkuP")
input ("")
print ("Game > Out of the darkness, shapes appear and begin to creep towards you. They step out of the shadows, revealing 50 more of these assumed 'Tems'.")
input ("")
print ("Game > You step back, sweating, to hear a warning snarl. Turning to look behind you, you see around 50 more closing in on you.")
input ("")
print ("Game > Glancing around, you see no escape.")
input ("")
print ("TeM > HooMaN No GuD *growls*")
input ("")
print ("TeM > TeMs!!!")
time.sleep(2)
print ("TeM > Atak!!!")
input ("")
print ("The Tems swarm forward, leaping and climbing over each other to get to you.")
input ("")
print ("Soon, you can hardly see over all the Tems on you, pulling you to the ground. The scratching and biting becomes too much and the white fur blurs together to make a blinding light.")
time.sleep(1)
print (" GAME OVER ")
print (" 'NeVr hit a TEM!!!' ")
time.sleep(2)
print ("")
print ("Shoutout to Nat (Tem) for making this ending! :3")
exit()
elif choice == "P":
print ("Partial Cave Enterance")