@mhs_mhs123/

textbasedgame

Python

No description

fork
loading
Files
  • main.py
main.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
print('You are in a cave, you have two pathways in front of you')


#directional variables --> pick___
pickcave = input('Which path do you want to go down? Right or Left')


# if player chooses to go right, they can choose to swim in the waterfall
if pickcave == 'Right':
	print('you see a waterfall beneath a large boulder, the water beckons for you to swim in it. You move closer to the water.')
	pickwater = input('Would you like to swim?')
else:
	print('you hear a screeching sound in the dark, it is almost screaming.')
	fightorrun = input('You see a large monster in front of you, do you want to fight or run?')

# if player chooses to swim in the waterfall, they can choose to view a shiny object up close
if pickwater == 'yes':
	print('you sit down in the lukewarm water and feel a sense of relaxation down your spine. As you are about to close your eyes, you notice a gleaming shine coming from beneath you')
	pickseeshine = input('Would you like to take a closer look at it?')
else:
	print('you decide to ignore it and choose to continue with your journey')
	print('you notice that there is a large rock next to you')

pickrock = input('Do you want to pick up the rock?')

if pickrock == 'yes':
	print('you look under the rock which tells you that you need to duck')
	followrock = input('do you want to duck?')
else:
	print('you ignore the rock and continue on your way')

if followrock == 'yes':
	print('you duck as you feel the whirl of a large hungry bird breezing over your head')
else:
	print('a large hungry bird picked you up and ate you in one bite')
	
	# if the player chooses to see the shiny object up close, he realizes that he cannot share the object with anyone else. if they choose not to see the object, they can leave the waterfall instead
if pickseeshine == 'yes':
	print('you pick it up, an amethyst stone, you say to yourself as you hover over it with your gleaming eyess. A beautiful crystal, but no one to share it with, that is the sad reality for the man in the cave!')
else:
	print('you decide to leave the waterfall, and continue along with your journey')


#if user does not see object up close, they walk further deeper into the cave and figure out that they are lost
if pickseeshine != 'yes':
	print('you walk down the cave even more, you begin to realize that the two pathways that you had to choose between cannot be seen anymore.')
else:
	print('')

print('panicking, you try to find some sign of light from whatever you can see around you, you scream for help but to no avail. Suddenly, you see a cloud hovering before you. You put the amethyst stone down and move closer to the cloud')

print('the cloud tells you that it can pick you up and take you out of the cave.')

cloudtrust = input('Do you trust the cloud?')

if cloudtrust == 'yes':
	print('the cloud takes you up and above the cave and gentrly drops you to the ground')
else:
	print('you stay in the cave forever as you starve and rot ')
	quit()