-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
1190 lines (1005 loc) · 33.7 KB
/
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
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
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import os
import random
import sys
import time
from termcolor import colored
printslowon="true"
def print_slow(str, interval = 0.07):
if printslowon=="true":
for letter in str:
#print(letter, end='')
sys.stdout.write(letter)
sys.stdout.flush()
time.sleep(interval)
print('')
def screen_clear():
# for mac and linux(here, os.name is 'posix')
if os.name == 'posix':
_ = os.system('clear')
else:
# for windows platfrom
_ = os.system('cls')
fishtiempo = 0
fishtiempocount = 0
size = 0
sizeword = 0
check = 0
dovariation = 0
variationcolor = 0
sizemultiplier = 0
def sizepick():
global size
global sizeword
global check
global sizemultiplier
sizemultiplier = 1
size = random.randint(1, 4)
if size==1:
sizeword = "small"
sizemultiplier=1.00
if size==2:
check = random.randint(1,2)
if check==1:
sizeword = "medium"
sizemultiplier=1.50
else:
sizepick()
if size==3:
check = random.randint(1,4)
if check==1:
sizeword = "large"
sizemultiplier=2.00
else:
sizepick()
if size==4:
check = random.randint(1,8)
if check==1:
sizeword = "huge"
sizemultiplier=4.00
else:
sizepick()
def shopline():
check = random.randint(1,5)
if check==1:
print_slow(colored("Ankha: Hello! Welcome to the shop!", "yellow"))
if check==2:
print_slow(colored("Ankha: Hi! Welcome to my shop!", "yellow"))
if check==3:
print_slow(colored("Ankha: Aloha! Welcome to the shop we have everything from Pineapples to Fishing Lines!", "yellow"))
if check==4:
print_slow(colored("Ankha: Hey! Welcome to the shop!", "yellow"))
if check==5:
print_slow(colored("Ankha: Welcome in!", "yellow"))
if check==6:
print_slow(colored("Ankha: Howdy!", "yellow"))
if check==7:
print_slow(colored("Ankha: Make sure to leave us a review!", "yellow"))
if check==8:
print_slow(colored("Ankha: Welcome to the store!", "yellow"))
if check==9:
print_slow(colored("Ankha: Welcome Ankha's Surplus!", "yellow"))
if check==10:
print_slow(colored("Ankha: Hello! Welcome in!", "yellow"))
def imblue():
print_slow(colored("Yo, listen up here's a story", "blue"))
print_slow(colored("About a little guy", "blue"))
print_slow(colored("That lives in a blue world", "blue"))
print_slow(colored("And all day and all night", "blue"))
print_slow(colored("And everything he sees is just blue", "blue"))
print_slow(colored("Like him inside and outside", "blue"))
print_slow(colored("Blue his house", "blue"))
print_slow(colored("With a blue little window", "blue"))
print_slow(colored("And a blue corvette", "blue"))
print_slow(colored("And everything is blue for him", "blue"))
print_slow(colored("And himself and everybody around", "blue"))
print_slow(colored("Cause he ain't got nobody to listen to", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("I have a blue house", "blue"))
print_slow(colored("With a blue window", "blue"))
print_slow(colored("Blue is the colour of all that I wear", "blue"))
print_slow(colored("Blue are the streets", "blue"))
print_slow(colored("And all the trees are too", "blue"))
print_slow(colored("I have a girlfriend and she is so blue", "blue"))
print_slow(colored("Blue are the people here", "blue"))
print_slow(colored("That walk around", "blue"))
print_slow(colored("Blue like my corvette its in and outside", "blue"))
print_slow(colored("Blue are the words I say", "blue"))
print_slow(colored("And what I think", "blue"))
print_slow(colored("Blue are the feelings", "blue"))
print_slow(colored("That live inside me", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("I have a blue house"), "blue")
print_slow(colored("With a blue window", "blue"))
print_slow(colored("Blue is the colour of all that I wear", "blue"))
print_slow(colored("Blue are the streets", "blue"))
print_slow(colored("And all the trees are too", "blue"))
print_slow(colored("I have a girlfriend and she is so blue", "blue"))
print_slow(colored("Blue are the people here", "blue"))
print_slow(colored("That walk around", "blue"))
print_slow(colored("Blue like my corvette, its in and outside", "blue"))
print_slow(colored("Blue are the words I say", "blue"))
print_slow(colored("And what I think", "blue"))
print_slow(colored("Blue are the feelings", "blue"))
print_slow(colored("That live inside me", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("I'm blue", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
print_slow(colored("Da ba dee da ba di", "blue"))
tempbells = 0
buginventory=["No bugs"]
foodlist=["PB&J"]
def bugpick():
sizepick()
global tempbells
check = buginventory.count("No bugs")
if check == "No Bugs":
buginventory.remove("No bugs")
if check==1:
bug = (colored("Ant", "green"))
tempbells=tempbells+(2*sizemultiplier)
buginventory.append(" Ant")
print_slow("You caught a " + bug)
exploreagain()
if check==2:
bug = (colored("Beetle", "green"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Beetle")
print_slow("You caught a " + bug)
exploreagain()
if check==3:
bug = (colored("Flea","green"))
tempbells=tempbells+(2*sizemultiplier)
buginventory.append(" Flea")
print_slow("You caught a " + bug)
exploreagain()
if check==4:
bug = (colored("Moth", "blue"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Moth")
print_slow("You caught a " + bug)
exploreagain()
if check==5:
bug = (colored("Dragonfly", "yellow"))
tempbells=tempbells+(5*sizemultiplier)
buginventory.append(" Dragonfly")
print_slow("You caught a " + bug)
exploreagain()
if check==6:
bug = (colored("Wasp","magenta"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Wasp")
print_slow("You caught a " + bug)
exploreagain()
if check==7:
bug = (colored("Cockroach", "yellow"))
tempbells=tempbells+(1.5*sizemultiplier)
buginventory.append(" Cockroach")
print_slow("You caught a " + bug)
exploreagain()
if check==8:
bug = (colored("Lice", "yellow"))
tempbells=tempbells+(1*sizemultiplier)
buginventory.append(" Lice")
print_slow("You caught a " + bug)
exploreagain()
if check==9:
bug = (colored("Cricket", "blue"))
tempbells=tempbells+(5*sizemultiplier)
buginventory.append(" Cricket")
print_slow("You caught a " + bug)
exploreagain()
if check==10:
bug = (colored("Termite", "red"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Termite")
print_slow("You caught a " + bug)
exploreagain()
if check==11:
bug = (colored("Fly", "green"))
tempbells=tempbells+(1*sizemultiplier)
buginventory.append(" Fly")
print_slow("You caught a " + bug)
exploreagain()
if check==12:
bug = (colored("Spider", "red"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Spider")
print_slow("You caught a " + bug)
exploreagain()
if check==13:
bug = (colored("Bee", "red"))
tempbells=tempbells+(5*sizemultiplier)
buginventory.append(" Bee")
print_slow("You caught a " + bug)
exploreagain()
if check==14:
bug = (colored("Firefly", "blue"))
tempbells=tempbells+(0.5*sizemultiplier)
buginventory.append(" Firefly")
print_slow("You caught a " + bug)
exploreagain()
if check==15:
bug = (colored("Grasshopper", "red"))
tempbells=tempbells+(5*sizemultiplier)
buginventory.append(" Grasshopper")
print_slow("You caught a " + bug)
exploreagain()
if check==16:
bug = (colored("Stickbug", "blue"))
tempbells=tempbells+(2.5*sizemultiplier)
buginventory.append(" Stickbug")
print_slow("You caught a " + bug)
exploreagain()
if check==17:
bug = (colored("Earwig", "blue"))
tempbells=tempbells+(2.5*sizemultiplier)
buginventory.append(" Earwig")
print_slow("You caught a " + bug)
exploreagain()
if check==18:
bug = (colored("Waterbug", "red"))
tempbells=tempbells+(4*sizemultiplier)
buginventory.append(" Waterbug")
print_slow("You caught a " + bug)
exploreagain()
if check==19:
bug = (colored("Praying Mantis", "red"))
tempbells=tempbells+(4*sizemultiplier)
buginventory.append(" Praying Mantis")
print_slow("You caught a " + bug)
exploreagain()
if check==20:
bug = (colored("Butterfly", "red"))
tempbells=tempbells+(2*sizemultiplier)
buginventory.append(" Butterfly")
print_slow("You caught a " + bug)
exploreagain()
if check==21:
bug = (colored("Centipede", "green"))
tempbells=tempbells+(2*sizemultiplier)
buginventory.append(" Centipede")
print_slow("You caught a " + bug)
exploreagain()
if check==22:
bug = (colored("Mosquitoe", "green"))
tempbells=tempbells+(1.5*sizemultiplier)
buginventory.append(" Mosquitoe")
print_slow("You caught a " + bug)
exploreagain()
if check==23:
bug = (colored("Locust", "green"))
tempbells=tempbells+(3*sizemultiplier)
buginventory.append(" Locust")
print_slow("You caught a " + bug)
exploreagain()
if check==24:
bug = (colored("Gnat", "blue"))
tempbells=tempbells+(2*sizemultiplier)
buginventory.append(" Gnat")
print_slow("You caught a " + bug)
exploreagain()
check=0
def exploreagain():
print_slow("Would you like to keep exploring? [Y/N]")
check=input("")
if check=="y" or check=="Y" or check=="yes" or check=="Yes":
time.sleep(1)
screen_clear()
explore()
if check=="n" or check=="N" or check=="no" or check=="No":
time.sleep(1)
screen_clear()
options()
def foodpick():
check=random.randint(1, 20)
if check==1:
foodlist.append(" Apple")
print_slow("You found an apple!")
exploreagain()
if check==2:
foodlist.append(" Pear")
print_slow("You found an pear!")
exploreagain()
if check==3:
foodlist.append(" Carrot")
print_slow("You found an carrot!")
exploreagain()
if check==4:
foodlist.append(" Beetroot")
print_slow("You found an beetroot!")
exploreagain()
if check==6:
foodlist.append(" Orange")
print_slow("You found an orange!")
exploreagain()
if check==7:
foodlist.append(" Lemon")
print_slow("You found a lemon!")
exploreagain()
if check==8:
foodlist.append(" Blackberry")
print_slow("You found a blackberry!")
exploreagain()
if check==9:
foodlist.append(" Raspberry")
print_slow("You found a raspberry!")
exploreagain()
if check==10:
foodlist.append(" Lychee")
print_slow("You found an Lychee!")
exploreagain()
if check==11:
foodlist.append(" Apricot")
print_slow("You found an apricot!")
exploreagain()
if check==12:
foodlist.append(" Blueberry")
print_slow("You found a blueberry!")
exploreagain()
if check==13:
foodlist.append(" Cacao")
print_slow("You found a Cacao!")
exploreagain()
if check==14:
foodlist.append(" Dragonfruit")
print_slow("You found a dragonfruit!")
exploreagain()
if check==15:
foodlist.append(" Fig")
print_slow("You found a fig!")
exploreagain()
if check==16:
foodlist.append(" Carrot")
print_slow("You found an carrot!")
exploreagain()
if check==17:
foodlist.append(" Guava")
print_slow("You found a guava!")
exploreagain()
if check==18:
foodlist.append(" Strawberry")
print_slow("You found a strawberry!")
exploreagain()
if check==19:
foodlist.append(" Pineapple")
print_slow("You found a pineapple!")
exploreagain()
if check==20:
foodlist.append(" Passionfruit")
print_slow("You found a passionfruit!")
exploreagain()
name="filler"
check=0
exploring=0
fishtiempo = random.randint(1, 10)
def explore():
screen_clear()
check=0
exploring=0
fishtiempo = random.randint(1, 10)
caught="false"
while caught=="false":
fishtiempocount = 0
if int(fishtiempocount)>=int(fishtiempo):
caught="true"
else:
screen_clear()
print_slow("Exploring.")
time.sleep(1)
fishtiempocount = int(fishtiempocount) + 1
screen_clear()
check=random.randint(1,2)
if check==1:
bugpick()
if check==2:
foodpick()
isvariation="false"
variationmultiplier=0
def variation():
global dovariation
global variationcolor
global isvariation
global variationmultiplier
dovariation=random.randint(1,20)
if dovariation==1:
isvariation="true"
variationcolor = random.randint(1,10)
if variationcolor==1:
variationcolor = "red"
if variationcolor==2:
variationcolor = "magenta"
if variationcolor==3:
variationcolor = "yellow"
if variationcolor==4:
variationcolor = "green"
if variationcolor==5:
variationcolor = "blue"
if variationcolor==6:
variationcolor = "pruple"
if variationcolor==7:
variationcolor = "slimy"
if variationcolor==8:
variationcolor = "three eyed"
if variationcolor==9:
variationcolor = "bloated"
if variationcolor==10:
variationcolor = "talking"
else:
isvariation="false"
def fishpick():
sizepick()
variation()
speechline="0"
def speechlines():
check=random.randint(1,8)
global speechline
if check==1:
speechline=(name + ": I will lower the taxes!")
if check==2:
speechline=(name + ": Today we will be watching the world renound Bee movie. But first I have a question. You like jazz?")
if check==3:
speechline=(name + ": Hello, villagers! Today I will be legalizing tax evasion!")
if check==4:
speechline=(name + ": TWIGS FOR EVERYONE")
if check==5:
speechline=(name + ": I like pizza")
if check==6:
speechline=(name + ":")
if check==7:
speechline=(name + ":")
if check==8:
speechline=(name + ":")
name="0"
donatebells=0
bells=5.00
def villagerspeech():
global donatebells
global bells
speechlines()
print_slow(speechline)
print_slow(colored("Villagers: *CHEERING*", "blue"))
print_slow(colored("The Villagers love you!", "blue"))
check=random.randint(1,8)
donatebells=random.randint(1,50)
if check==1:
print_slow(colored("One of them even gave you " + str(donatebells) + " dollars! They must really love you", "blue"))
bells = bells + donatebells
check=random.randint(1,4)
if check==1:
print_slow("As you walk off stage, you still hear them cheering and chanting your name.")
print_slow("More content, you go back to your mayor-ly duties.")
time.sleep(1)
screen_clear()
options()
basicrod = "1. Basic Rod 100 Bells"
avgrod = "2. Average Rod 500 Bells"
goodrod = "3. Good Rod 2000 Bells"
bestrod = "4. Best Rod 4000 Bells"
fishspeed=1
basicrodpurchase = "false"
avgrodpurchase = "false"
goodrodpurchase = "false"
bestrodpurchase = "false"
rodpurchase=0
shopitem=0
def shop():
global bells
global basicrod
global avgrod
global goodrod
global bestrod
global basicrodpurchase
global avgrodpurchase
global goodrodpurchase
global bestrodpurchase
global rodpurchase
global fishspeed
global shopitem
screen_clear()
print_slow("bells: $" + str(bells))
print_slow("\n")
shopline()
print_slow(colored("Ankha: What are you shopping for? Just tell me with numbers 1. Fishing Rods or 2. Food", "yellow"))
print_slow(colored("Ankha: or type 'exit' to leave the shop.", "yellow"))
shopitem=input("")
if shopitem=="1":
print_slow("\n")
print_slow(basicrod + " | " + avgrod + " | " + goodrod + "|" + bestrod + " |")
print_slow(colored("Ankha: Type the number of what you would like to purchase.", "yellow"))
print_slow(colored("Ankha: Or type 'exit' to do something else.", "yellow"))
rodpurchase = input("")
if rodpurchase=="1":
if basicrodpurchase=="false":
if int(bells)>=100:
bells = int(bells) - 100
basicrod = "1. Basic Rod (OWNED)"
basicrodpurchase="true"
print_slow(colored("Ankha: Good choice for a beginner! Here you go!", "yellow"))
time.sleep(1)
screen_clear()
shop()
fishspeed=0.75
else:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
shop()
else:
print_slow(colored("Ankha: You already own this rod!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if rodpurchase=="2":
if avgrodpurchase=="false":
if int(bells)>=500:
bells = int(bells) - 500
avgrod = "2. Average Rod (OWNED)"
avgrodpurchase="true"
print_slow(colored("Ankha: Here's the Average Rod!", "yellow"))
time.sleep(1)
screen_clear()
shop()
fishspeed=0.5
else:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
shop()
else:
print_slow(colored("Ankha: You already own this rod!", "yellow"))
screen_clear()
time.sleep(1)
shop()
if rodpurchase=="3":
if goodrodpurchase=="false":
if int(bells)>=2000:
bells = int(bells) - 2000
goodrod = "3. Good Rod (OWNED)"
goodrodpurchase="true"
print_slow(colored("Ankha: Ooooh As the name suggests, it is a Good Rod!", "yellow"))
time.sleep(1)
screen_clear()
shop()
fishspeed=0.25
else:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
shop()
else:
print_slow(colored("Ankha: You already own this rod!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if rodpurchase=="4":
if bestrodpurchase=="false":
if int(bells)>=4000:
bells = int(bells) - 4000
bestrod = "4. Best Rod (OWNED)"
bestrodpurchase="true"
print_slow(colored("Ankha: This one is the absolute best for fishing. You can take the one in the case over there.", "yellow"))
time.sleep(1)
screen_clear()
shop()
fishspeed=0.1
else:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
shop()
else:
print_slow(colored("Ankha: You already own this rod!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if rodpurchase=="exit":
print_slow(colored("Ankha: See you next time!", "yellow"))
screen_clear()
options()
else:
print_slow(colored("Ankha: Sorry I didn't get that. Tell me again please.", "yellow"))
shop()
if shopitem=="2":
print_slow(colored("Ankha: Yeah, I'm hungry too.", "yellow"))
print_slow("1. Donut 2 Bells | 2. Pizza 10 Bells | 3. Pineapple 8 Bells| 4. PB&J 3 Bells |")
print_slow(colored("Ankha: What would you like? (Type the number)", "yellow"))
print_slow(colored("Ankha: Or type 'exit' to exit the shop.", "yellow"))
check=input("")
if check=="1":
if bells >= 2:
bells=bells-2
print_slow(colored("Ankha: Enjoy!", "yellow"))
foodlist.append(" Donut")
time.sleep(1)
screen_clear()
shop()
if bells < 2:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
shop()
if check=="2":
if bells >= 10:
bells=bells-10
print_slow(colored("Ankha: Mmmm...I love pizza!", "yellow"))
foodlist.append(" Pizza")
time.sleep(1)
screen_clear()
shop()
if bells < 10:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if check=="3":
if bells >= 8:
bells=bells=8
print_slow(colored("Ankha: To be honest, pineapple hurts my mouth.", "yellow"))
foodlist.append(" Pineapple")
time.sleep(1)
screen_clear()
shop()
if bells < 8:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if check=="4":
if bells >= 3:
bells=bells-3
print_slow(colored("Ankha: I love PB&Js!", "yellow"))
foodlist.append(" PB&J")
time.sleep(1)
screen_clear()
shop()
if bells < 3:
print_slow(colored("Ankha: You don't have enough Bells!", "yellow"))
time.sleep(1)
screen_clear()
shop()
if shopitem=="exit":
print_slow(colored("Ankha: See you next time!", "yellow"))
time.sleep(1)
screen_clear()
options()
else:
print_slow(colored("Ankha: Sorry I didn't get that. Tell me again please.", "yellow"))
time.sleep(1)
screen_clear()
shop()
ifnotaction1="1"
ifnotaction2="2"
ifnotaction3="3"
ifnotaction4="4"
ifnotaction5="5"
ifnotaction6="6"
ifnotaction7="7"
ifnotaction8="8"
ifnotaction9="9"
ifnotaction10="10"
fish="filler"
fishnum=0
#when done duplicate game but make print fast
fishinventory=["No Fish"]
def options():
global fishtiempo
global fishtiempocount
global caught
global tempbells
global bells
global fishnum
print_slow("Type the number of what you would like to do.")
print_slow(colored("1. Go fishing", "blue"))
print_slow(colored("2. Sell your fish and bugs", "green"))
print_slow(colored("3. Go to the shop", "yellow"))
print_slow(colored("4. Talk to villagers", "blue"))
print_slow(colored("5. Eat lunch", "red"))
print_slow(colored("6. View your inventory", "magenta"))
print_slow(colored("7. Go to K.K Slider's Concert", "green"))
print_slow(colored("8. Go exploring", "blue"))
print_slow(colored("9. Settings BROKEN", "black"))
action = input("")
if action=="1":
fishing()
if action=="2":
print_slow("Sold!")
bells=bells+tempbells
print_slow("You now have $" + str(bells))
fishinventory.clear()
time.sleep(1)
screen_clear()
tempbells=0
fishinventory.append("No Fish")
buginventory.append("No Bugs")
options()
if action=="3":
shop()
if action=="4":
villagerspeech()
if action=="5":
screen_clear()
if 'PB&J' in foodlist:
print_slow("Luckily, Mom packed you a PB&J!")
print_slow("You chow down...mmmm...It was super good!")
foodlist.remove("PB&J")
time.sleep(1)
screen_clear()
options()
if not bool(foodlist):
print_slow("You have no food to eat!")
time.sleep(1)
screen_clear()
options()
else:
foodeat = random.choice(foodlist)
print_slow("You have a " + str(foodeat))
print_slow("Yum. It was SO good!")
foodlist.remove(foodeat)
time.sleep(1)
screen_clear()
options()
if not bool(foodlist):
print_slow("You don't have any food!.")
time.sleep(1)
screen_clear()
options()
if action=="6":
screen_clear()
foodininventory="true"
fishininventory="true"
bugsininventory="true"
if foodininventory=="true":
for i in foodlist:
print("Food:" + i, end=" ")
if fishininventory=="true":
for i in fishinventory:
print("\nFish:" + i, end=" ")
if bugsininventory=="true":
for i in buginventory:
print("\nBugs:" + i, end=" ")
check=input("\nType 'exit' to leave.\n")
if check=="exit" or check=="Exit":
screen_clear()
options()
else:
print_slow("Sorry, I didn't get that. I'll assume you want to leave.")
time.sleep(1)
screen_clear()
options()
if action=="7":
screen_clear()
print_slow(colored("K.K Slider: Let's get this concert started!", "white"))
print_slow(colored("K.K Slider: I'll be playing 'I'm Blue'!\n", "white"))
imblue()
print_slow("")
print_slow("Type 'exit' when you're ready to leave.")
check=input("")
if check=="exit" or check=="Exit":
time.sleep(1)
screen_clear()
options()
if action=="8":
screen_clear()
print_slow("You begin your exploration of the island")
time.sleep(1)
explore()
if action=="9":
print_slow("Hey! I said it was broken! Now go away >:(")
time.sleep(1)
screen_clear()
options()
if not ifnotaction1 and ifnotaction2 and ifnotaction3 and ifnotaction4 and ifnotaction5 and ifnotaction6 and ifnotaction7 and ifnotaction8 and ifnotaction9 and ifnotaction10:
print_slow("Sorry, invalid input. Try again")
time.sleep(1)
screen_clear()
options()
def fishing():
global tempbells
check = fishinventory.count("No fish")
if check == "No fish":
fishinventory.remove("No Fish")
check=random.randint(1,8)
if check==1:
print_slow("It's Winter! The water is frozen over, so you can't go fishing!")
time.sleep(1)
screen_clear()
options()
fishtiempo = random.randint(1, (10 * int(fishspeed)))
fishtiempocount = 0
caught="false"
while caught=="false":
if int(fishtiempocount)>=int(fishtiempo):
caught="true"
else:
screen_clear()
print_slow("Fishing.")
time.sleep(1)