-
Notifications
You must be signed in to change notification settings - Fork 0
/
arsegame.py
431 lines (313 loc) · 16.6 KB
/
arsegame.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
# OLD
import time
import sys
# variables
episodeChoice = 1 # which episode is selected, and this will be used throughout the code
episodes = ["Season 1, Episode 1: Attempting the Arrest", "Season 1, Episode 2: Locating the Fortress", "Season 1, Episode 3: Defending the Base", "Season 1, Episode 4: Fleeing the Vault", "Season 1, Episode 5: Completing the Job", "Season 2, Episode 1: idk"] # just for episode names
episode = episodes[0] # cosmetic purposes only
retrySkip = False
FAIL = """
______ _____ _ _
| ____/\ |_ _| | | |
| |__ / \ | | | | | |
| __/ /\ \ | | | | | |
| | / ____ \ _| |_| |____|_|
|_|/_/ \_\_____|______(_)
"""
TUTORIAL = """
_______ _ _ _
|__ __| | | (_) | |
______ | |_ _| |_ ___ _ __ _ __ _| | ______
|______| | | | | | __/ _ \| '__| |/ _` | | |______|
| | |_| | || (_) | | | | (_| | |
|_|\__,_|\__\___/|_| |_|\__,_|_|
"""
# functions
def write(txt="", delay=1.5):
print(txt)
time.sleep(delay)
return
def choice(validOptions, prompt=""):
temp = "2389054g72398b523975bn0932b509650892305b2345b"
print(prompt)
while temp not in validOptions:
temp = input("> ").strip().lower()
return temp
def fail(flavorText="You failed!", allowRestart=True):
global FAIL, episodeChoice
print("\n" * 69)
print(FAIL)
print(flavorText, end="\n\n")
temp = choice(["ragequit", "retry", "main menu"], "What do you want to do? (retry; main menu; ragequit)")
if temp == "retry":
retrySkip = True
if episodeChoice == 1:
ata()
elif episodeChoice == 2:
ltf()
elif episodeChoice == 3:
dtb()
elif episodeChoice == 4:
ftv()
elif episodeChoice == 5:
ctj()
elif temp == "main menu":
startMenu()
elif temp == "ragequit":
sys.exit() # my dumbass self would to raise an exception to crash it or something
else:
temp = "3b6n3698nboin4ybon8b"
def win():
retrySkip = False
temp = choice(["quit", "restart episode", "main menu"], "")
if temp == "restart episode":
if episodeChoice == 1:
ata()
elif episodeChoice == 2:
ltf()
elif episodeChoice == 3:
dtb()
elif episodeChoice == 4:
ftv()
elif episodeChoice == 5:
ctj()
elif temp == "main menu":
startMenu()
elif temp == "quit":
sys.exit()
else:
temp = "sddfwebrq25b235b2345b23456b2345b23456nb234567n3567nj467eruyertnyenrtyenrty"
print("Type anything to exit.")
while len(temp) == "sddfwebrq25b235b2345b23456b2345b23456nb234567n3567nj467eruyertnyenrtyenrty":
temp = input("> ").strip().lower()
sys.exit()
def typeTimer(time=1.5):
return
def tutorial():
write(TUTORIAL, 1)
write("Chief: Welcome to the Wankopolis police force!", 1.5)
write("Chief: Everyone! Welcome our new recruit, F!", 1.5)
write("(You are playing as F.)", 1.5)
write("Chief: Your goal is to prevent Eli and his goons from carrying out his evil plans.", 2)
write("Chief: You really look like you need a buddy...", 2)
write("Chief: Hey, RW! Come over here! Meet your new partner!", 1.5)
write("RW: Oh, hi there! How's your day?", 1.5)
write("F: Hi! My day's going great, as I just got here, *chuckles*.", 1.5)
write("RW: I'm excited to be your new partner!", 1.5)
write("F: I am too!", 1.5)
write("\nHave fun playing! (type 'done' when you're done reading)", 0)
temp = "q1g6qgewr2395qbw8476wertn12q24395485768369qwe284r5b7qn254226b5e4,m6789an2t19.85b23495ethiorubgioybqrweghiowberteqrwgybioewrtyewbrti"
while temp != 'done':
temp = choice(["done"])
return
# episode 1: Attempting the Arrest
def ata():
print("\n" * 69)
write("F: Oh no! Eli is robbing the Wankopolis bank!")
write("F (thinking): What should I do?")
temp = choice(["get backup", "nothing"], "\n(get backup; nothing)")
if temp == "nothing":
print("\n" * 69)
write("Eli: Mmm, wow, that sweet sweet muney.")
write("Eli (thinking): That was so easy.")
write("F (thinking): Why did I do nothing. We just lost like $200k.")
write("F: *Takes out phone*", 1)
write("F (in guilt): Uh, yeah, Eli just stole $200k from the local bank...")
write("Cheif of the Wankopolis Police Force: WHAT!? HOW DID YOU LET HIM DO THAT!?!? YOU'RE FIRED!!!")
write("F is now fired from the Wankopolis Police Force.", 2)
fail("Why did you choose to do nothing? Do you even want to play the game? Now you're fired from the police force. You know what? I'm not even gonna allow you to retry.", False)
elif temp == "get backup":
print("\n" * 69)
write("F: *Pulls out phone*")
write("F: Hey chief, we need some backup here.")
write("Chief: Ok, I'll reconnect you to RW. Remember, he's your partner!")
write("RW: Uh, yeah? What is it?", 1)
write("F: Eli is robbing the bank!", 1)
write("F: Please come over and bring, uh, everything, just in case.", 2)
write("RW: Uhh, ok then...", 2)
write("A few minutes pass and RW comes over with a police car and a bunch of stuff.")
write("However, the car makes too much noise, and Eli hears it.")
write("Eli: Oh no, oh no, oh no!")
write("Eli (thinking): Gotta get out of here!")
write("Eli gets into his car, and tries to drive away.")
write("F said to bring everything, so RW did.")
write("He brought one nail and a grenade that explodes anything that is lands when thrown forcefully.")
write("He also has some other stuff.")
write("You have three options.")
temp = choice(["nail", "grenade", "car"], "\n(nail; grenade; car)")
if temp == "nail":
print("\n" * 69)
write("F tries to throw the one nail at Eli's car's tire, hoping the nail would puncture the tire.")
write("But, F ends up missing.")
write("Since he missed, he gets away.")
fail("So, you had one nail. Correct? Its purpose was to hit the tire and puncture it. Am I right? And you missed it. That's kinda sad.")
elif temp == "car":
print("\n" * 69)
write("The car pulls up, and the duo both get in, with RW driving.")
write("It takes F so long and he is having trouble with the seatbelt.")
write("F ended up losing track of Eli's car because he couldn't see and RW thought F was watching.", 3)
fail("Ok, this one isn't really your fault, this is more of RW's fault. He should've been looking. Either way, Eli is now gone and you can't find him.")
elif temp == "grenade":
print("\n" * 69)
write("RW gives F the grenade while Eli is desperatly trying to get into the car and escape.", 2)
write("F throw the grenade at Eli's car.")
write("Eli's car explodes into flames.")
write("F and RW try to chase after him, but Eli has some backup.", 2)
write("Eli: ITC!! HELP ME!! SPRAY SMOKE OR SOMETHING!!!")
write("ITC comes over with his helicopter and sprays smoke on the two.", 2)
write("...")
write("F: Ok, what was that?")
write("F: But more importantly, WHERE DID ELI GO!?!?")
write("RW: Uh, I don't know.")
write("RW: But I do have two cat search teams I could call.")
write("F: Uhm, why?")
write("RW: Cats are just good at smelling, I guess?")
write("RW: I don't know which one I should call though.")
temp = choice(["green", "blue"], "Which cat team do you want to call? Green Team - Has knives; Blue Team - Has belts. (green; blue)")
if temp == "green":
write("F calls the green team.")
write("However, the green team wasn't properly trained on how to use knives responsibly.")
write("They end up stabbing each other because they thought their team allies were Eli or his goons.", 3)
fail("Ooh, that must suck. I at least thought the cats would be trained.")
if temp == "blue":
write("The blue team, with their 3 years of training, try to sniff out Eli's stinky smell.")
write("They do find him, and take out their belts.")
write("The cats LASH Eli until he's on the floor.")
write("Eli (in fear): STOP! PLEASE! JUST STOP LASHING ME! (screaming really loudly in pain) AAAAAAAAAAAAAAAAAAAAAA")
# the end of episode 1
write("Rank Achieved: Beginner Asian Dad")
write("What do you want to do? (restart episode; main menu; quit)")
win()
def ltf():
print("\n" * 69)
write("The Failure Force (F and RW) are outside of their house, eating sandwhiches and sitting outside their house. Next to their house, there is a sign that says \"Welcome to the Middle of Nowhere!\"")
write("F (to RW): We to to find the Fortress of Arses if we want to have a singular chance at serving justice.")
write("The two go inside their house.")
write("RW: Hey, wait! I know a map that leads to the fortress!")
write("RW: It's located inside a vault guarded by the Arses!")
write("F: Alright then, let's break in!")
write("F and RW both get into the car and drive off toward the vault in the jungle.")
write("\n...\n", 2)
write("F and RW approach the vault and they see that JB and JI are guarding the entrance.", 2)
write("RW: Yo, how do we get in?")
temp = choice(["bust in", "sneak in"], "\nWhat's your method of getting in? (bust in; sneak in)")
if temp == "sneak in": # Path 2A
print("\n" * 69)
write("F and RW decide to sneak in together.")
write("RW equips a radar that will make beeping sounds if a guard gets suspicious.")
write("F (whispering to RW): Ok, which way should we go?")
temp = choice(["around the back", "tunnel under", "walk straight through"], "\nHow would you like to sneak in? (around the back; tunnel under; walk straight through)")
if temp == "around the back": # Path 2AA
print("\n" * 69)
write("The duo walk around to the back without any of the guards seeing them.", 2)
write("F: Shoot, how do we get in?")
temp = choice(["knife", "mega drill", "open the door"], "What do you want to do? (knife; mega drill; open the door)")
if temp == "knife": # Fail
print("\n" * 69)
write("F equis a knife to try and dig through the door.")
write("F: Ugh, *intense effort noises and grunts*")
write("F: Finally! Got it!--", 0.5)
write("F: OWWWWWWWWW", 2)
write("RW: Did you really just stab yourself?", 2)
fail("Probably should've thought that through.")
elif temp == "mega drill":
print("\n" * 69)
write("F: Alright, here's a mega drill that I have.")
write("F: I just have to hold on to it...", 2)
write("\n...\n")
write("F: WAHHHH!!", 2)
write("RW (thinking): Damn.", 2)
fail("Refrence?")
elif temp == "open the door":
print("\n" * 69)
write("F opens the door and the duo go in.")
write("F: Alright, let's get to the vault room.")
write("F: That's where the map is, right?")
write("RW: Mhm.", 0.75)
write("F (whispering): We have to get past the main hub.", 2)
write("F (whispering): Right... Angel and Ekin are there.", 2)
write("F: How should I defeat them?")
temp = choice(["grenade throw", "super bomb", "laser blaster"], "What do you want to use to defeat the guards? (grenade throw; super bomb; laser blaster)")
if temp == "grenade throw": # fail
print("\n * 69")
write("F throws a grenade into the main hub.")
write("However, it bounces against the wall back to where he is.", 2.5)
fail("...")
elif temp == "super bomb": # fail
print("\n * 69")
write("F throws a super bomb into the main hub.")
write("F: Alright, it should explode in 3 seconds...", 3)
write("BOOM!")
write("The bomb was way to super and blew up F and RW in the process.", 2)
fail("Really should've nerfed the bomb.")
elif temp == "laser blaster":
print("\n" * 69)
write("F equips a laser gun and quickly blastes the two guards.", 2)
write("They go to the map room straight afterwards.", 2)
write("F: Alright! I got the map!")
write("However, their excitment was short-lived.", 0.5)
write("Oscar (holding taser): STOP RIGHT THERE!", 0.5)
write("F manages to kick Oscar before he tases him.")
write("RW: Nice! Now how do we get out?")
temp = choice(["cheese", "rocket"], "How should F and RW get out? (rocket; cheese)")
if temp == "cheese": # Fail
print("\n" * 69)
write("F and RW eat cheese.", 3)
fail("Really? I'm literally confused on why you chose this. Were you expecting this to actually do something?")
elif temp == "tunnel under": # Path 2AB
print("\n" * 69)
elif temp == "walk straight through": # Fail
print("\n" * 69)
write("F walks right through the door,", 1)
write("the guards see him,", 1)
write("RW thinks F is an idiot,", 1)
write("and F gets shot.", 3)
fail("You really shouldn't have picked this option. Did you really expect it to work?")
elif temp == "bust in": # Path 2B
print("\n" * 69)
# insert more
def dtb():
pass
def ftv():
pass
def ctj():
pass
# choose episode
def startMenu():
global episodeChoice, episodes, episode
episodeChoice = 1
temp = "WOLOLOLO"
while temp.lower() != "start":
while temp.lower() not in [">", "<", "start", "tutorial"]:
print("\n" * 69 + f"What would you like to do? (Enter '>', '<', 'start', or 'tutorial' (next & previous episode, respectively))\n\nSelected episode: [{episode}]\n")
temp = input("> ").strip()
print(temp)
if temp.lower() == "start":
break
elif temp.lower() == ">":
episodeChoice += 1
elif temp.lower() == "<":
episodeChoice -= 1
elif temp.lower() == "tutorial":
tutorial()
if episodeChoice < 1:
episodeChoice = 5
if episodeChoice > 5:
episodeChoice = 1
episode = episodes[episodeChoice - 1]
temp = ".-- - .. ..... -.. -- -. .... ...- -. .-.. .--- .-. .---- .--. --- -.-- ...- -.. ....- -... ..-. .--. -.. --.- .--- -... .. . ..- .--- -.... -.-- .-.. -.. --. . -- ..-. -.. --.- -. .-. .-.. ..- ----- .--- -.-- .-- .-.. .... ... .- .-- .. -.-- .-. -. .-.. .- --.- ----- .--- -.... -.-- -. .-.. -.-. -... .---- .--. -.-- ... -- -..- .--- .-. .-- - -. .-- ...- -.-. .-- .--. --.- -...- -...-"
if episodeChoice == 1:
ata()
elif episodeChoice == 2:
ltf()
elif episodeChoice == 3:
dtb()
elif episodeChoice == 4:
ftv()
elif episodeChoice == 5:
ctj()
temp = "23470985h036nb234n5n302457n7g32670v8gn237g34687g04563mn34657gvn3456780345678b90n3456" # kek
return None
# Ok real code
startMenu() # WHOA WHOA WHOA WHOA WHOA WHOA WHOA
print("\n" * 69)