-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
1484 lines (1415 loc) · 90.1 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
@namespace
class SpriteKind:
Stuff = SpriteKind.create()
Teleport = SpriteKind.create()
NPC = SpriteKind.create()
casa = SpriteKind.create()
Citizen1 = SpriteKind.create()
Citizen2 = SpriteKind.create()
Citizen3 = SpriteKind.create()
Mayor1 = SpriteKind.create()
Mayor2 = SpriteKind.create()
Peaceful_mob = SpriteKind.create()
Snake_mob = SpriteKind.create()
Crab_mob = SpriteKind.create()
Monster_mob = SpriteKind.create()
Phantom_mob = SpriteKind.create()
Phantom_boss_mob = SpriteKind.create()
enemie_projectile = SpriteKind.create()
Villagers = SpriteKind.create()
#Variables
dx = 0
dy = 0
radians = 0
projectile50: Sprite = None
sprite_house4: Sprite = None
sprite_house2: Sprite = None
conversation_done7 = False
phantom_boss: Sprite = None
conversation_done6 = False
snake: Sprite = None
sprite_house3: Sprite = None
statusbar: StatusBarSprite = None
statusbarboss: StatusBarSprite = None
citizen_mayor2: Sprite = None
citizen_mayor: Sprite = None
citizen_jake3: Sprite = None
citizen_jake2: Sprite = None
citizen_jake: Sprite = None
PC_master: Sprite = None
chest_1_open = False
chest_2_open = False
chest_3_open = False
chest_lava_open = False
a = 0
speedy222 = 90 #SpeedYSpritePrincipal
speedx222 = 90 #SpeedXSpritePrincipal
projectile: Sprite = None
list_mobcap_snake3: List[Sprite] = []
list_mobcap_snake2: List[Sprite] = []
list_mobcap_snake1: List[Sprite] = []
list_mobcap_crab4: List[Sprite] = []
list_mobcap_crab3: List[Sprite] = []
list_mobcap_crab2: List[Sprite] = []
list_mobcap_crab1: List[Sprite] = []
list_mobcap_fish8: List[Sprite] = []
list_mobcap_fish7: List[Sprite] = []
list_mobcap_fish6: List[Sprite] = []
list_mobcap_fish5: List[Sprite] = []
list_mobcap_fish4: List[Sprite] = []
list_mobcap_fish3: List[Sprite] = []
list_mobcap_fish2: List[Sprite] = []
list_mobcap_fish1: List[Sprite] = []
list_mobcap_enemyMobs2: List[Sprite] = []
list_mobcap_enemyMobs1: List[Sprite] = []
list_mobcap_phantom: List[Sprite] = []
list_mobcap_phantomboss: List[Sprite] = []
inventory: List[str] = []
conversation_done5 = False
enemymobs_killed: List[number] = []
sprite_house1: Sprite = None
user_option = ""
keep_asking = False
conversation_done = False
NPC_master: Sprite = None
mySprite: Sprite = None
direction = 0
warning_text = ""
number_of_keys = 0
reward2222 = ""
b = 0
count = 0
boss_destroyed = False
last_digit = 0
citizen_jake4 = None
PC_master2 = None
crab_killed2 = 0
snake_killed2 = 0
phantom_killed2 = 0
citizen_jake22 = None
citizen_jake32 = None
citizen_mayor3 = None
citizen_mayor22 = None
enemyMonster2 = None
spawn_number_mobs_fish = 0
spawn_number_mobs2 = 0
spawn_number_mobs = 0
enemy_kills = 0
os1 = False
warning_text = "Abans d'utilitzar al teletransportador, ves a veure al mag"
direction = 0
height = 160
width = 120
nestedMenu: miniMenu.MenuSprite = None
LegsMenu: miniMenu.MenuSprite = None
torsoMenu: miniMenu.MenuSprite = None
headMenu: miniMenu.MenuSprite = None
myMenu: miniMenu.MenuSprite = None
scene.set_background_color(12)
metaMenu = miniMenu.create_menu(miniMenu.create_menu_item("MENU"),
miniMenu.create_menu_item("Dificultat"))
def on_button_pressed10(selection11, selectedIndex11):
metaMenu.close()
if selectedIndex11 == 0:
framedMenu()
else:
framedMenu()
metaMenu.on_button_pressed(controller.A, on_button_pressed10)
def framedMenu():
global myMenu
myMenu = miniMenu.create_menu(miniMenu.create_menu_item("Fàcil"),
miniMenu.create_menu_item("Mitjà"),
miniMenu.create_menu_item("Difícil"),
miniMenu.create_menu_item("Extrem"))
myMenu.set_menu_style_property(miniMenu.MenuStyleProperty.WIDTH, 100)
myMenu.set_menu_style_property(miniMenu.MenuStyleProperty.HEIGHT, 60)
myMenu.y = 60
myMenu.x = 80
myMenu.set_frame(img("""
88888..8888888888888888....88888.
87768888777877787778777888867778.
87777686767876767678767688777778.
87767767667676676676766786776768.
8677676767767767677677678676778..
.877768777686767776867678667768..
.886668888888888888888888886688..
.888888866666666666666668877768..
88677786666666666666666668766778.
87766686666666666666666668776678.
87667786666666666666666668677778.
87777686666666666666666668866888.
88866886666666666666666668677778.
87777686666666666666666668776678.
87667786666666666666666668666778.
87766786666666666666666668777688.
88677786666666666666666668766778.
87766686666666666666666668776678.
87667786666666666666666668677778.
87777686666666666666666668866888.
88866886666666666666666668677778.
87777686666666666666666668776678.
87667786666666666666666668666778.
87766786666666666666666668777688.
.867778866666666666666668888888..
.886688888888888888888888866688..
.867766876768677767686777867778..
.8776768767767767677677676767768.
86767768766767667667676676776778.
87777788676787676767876768677778.
87776888877787778777877788886778.
88888..88888888888888888....8888.
.................................
"""))
myMenu.set_style_property(miniMenu.StyleKind.DEFAULT,
miniMenu.StyleProperty.BACKGROUND,
6)
myMenu.set_style_property(miniMenu.StyleKind.DEFAULT,
miniMenu.StyleProperty.FOREGROUND,
1)
def on_button_event_a_pressed():
game2()
controller.player1.on_button_event(ControllerButton.A, ControllerButtonEvent.PRESSED, on_button_event_a_pressed)
def game2():
myMenu.close()
info.set_life(10)
mySprite = sprites.create(assets.image("""
mySprite
"""), SpriteKind.player)
animation.run_image_animation(mySprite, assets.animation("""
myAnim
"""), 200, True)
NPC_master = sprites.create(assets.image("""
npc_master
"""), SpriteKind.NPC)
NPC_master.set_position(200, 50)
tiles.set_current_tilemap(tilemap("""level0"""))
scene.center_camera_at(20, 20)
# Generar todos los NPCs del mapa
def create_all_NPCs():
global PC_master, citizen_jake, citizen_jake2, citizen_jake3, citizen_mayor, citizen_mayor2
PC_master = sprites.create(assets.image("""
npc_master
"""), SpriteKind.NPC)
citizen_jake = sprites.create(assets.image("""
Citizen1
"""), SpriteKind.Citizen1)
citizen_jake2 = sprites.create(assets.image("""
citizen2
"""), SpriteKind.Citizen2)
citizen_jake3 = sprites.create(assets.image("""
Citizen1
"""), SpriteKind.Citizen3)
citizen_mayor = sprites.create(assets.image("""
citizen_mayor
"""), SpriteKind.Mayor1)
citizen_mayor2 = sprites.create(assets.image("""
citizen_mayor
"""), SpriteKind.Mayor1)
villager_1 = sprites.create(assets.image("""
villager1
"""), SpriteKind.Villagers)
villager_2 = sprites.create(assets.image("""
villager4
"""), SpriteKind.Villagers)
villager_3 = sprites.create(assets.image("""
villager6
"""), SpriteKind.Villagers)
villager_4 = sprites.create(assets.image("""
villager4
"""), SpriteKind.Villagers)
PC_master.set_position(100, 60)
citizen_jake.set_position(520, 185)
citizen_jake2.set_position(260, 465)
citizen_jake3.set_position(1475, 670)
citizen_mayor.set_position(1140, 175)
villager_1.set_position(1433, 150)
villager_2.set_position(1525, 175)
citizen_mayor2.set_position(490, 1165)
villager_3.set_position(260, 1483)
villager_4.set_position(487,1723)
# Funciónes para crear montruos enemigos
def create_mob_cap(list_mob: List[Sprite], how_many_mobs: number):
global statusbar
for index in range(how_many_mobs):
enemyMonster = sprites.create(assets.image("""
monster
"""), SpriteKind.Monster_mob)
statusbar = statusbars.create(20, 3, StatusBarKind.health)
statusbar.set_color(2, 13)
statusbar.set_status_bar_flag(StatusBarFlag.SMOOTH_TRANSITION, True)
statusbar.attach_to_sprite(enemyMonster)
sprites.set_data_number(enemyMonster, "HP", 3)
animation.run_image_animation(enemyMonster,
assets.animation("""
monster_anim
"""),
200,
True)
list_mob.append(enemyMonster)
def create_mob_cap_snake(list_mob22222: List[Sprite], how_many_mobs2: number):
global snake, statusbar
for index2 in range(how_many_mobs2):
snake = sprites.create(assets.image("""
snake
"""), SpriteKind.Snake_mob)
animation.run_image_animation(snake,
assets.animation("""
snake_anim
"""),
200,
True)
statusbar = statusbars.create(30, 3, StatusBarKind.health)
statusbar.set_color(2, 13)
statusbar.set_status_bar_flag(StatusBarFlag.SMOOTH_TRANSITION, True)
statusbar.attach_to_sprite(snake)
sprites.set_data_number(snake, "HP", 4)
list_mob22222.append(snake)
def create_mob_cap_fish(list_mob22: List[Sprite], how_many_mobs5: number):
for index5 in range(how_many_mobs5):
fish = sprites.create(assets.image("""
fish1
"""), SpriteKind.Peaceful_mob)
animation.run_image_animation(fish, assets.animation("""
fish_anim
"""), 200, True)
list_mob22.append(fish)
def create_mob_cap_fish2(list_mob222: List[Sprite], how_many_mobs3: number):
for index3 in range(how_many_mobs3):
fish2 = sprites.create(assets.image("""
fish2
"""), SpriteKind.Peaceful_mob)
animation.run_image_animation(fish2, assets.animation("""
fish2_anim
"""), 200, True)
list_mob222.append(fish2)
def create_mob_cap_crab(list_mob2222: List[Sprite], how_many_mobs4: number):
global statusbar
for index4 in range(how_many_mobs4):
crab = sprites.create(assets.image("""
crab
"""), SpriteKind.Crab_mob)
statusbar = statusbars.create(10, 3, StatusBarKind.health)
statusbar.set_color(2, 13)
statusbar.set_status_bar_flag(StatusBarFlag.SMOOTH_TRANSITION, True)
statusbar.attach_to_sprite(crab)
sprites.set_data_number(crab, "HP", 1)
animation.run_image_animation(crab, assets.animation("""
crab_anim
"""), 200, True)
list_mob2222.append(crab)
def create_mob_cap_phantom(list_mob34234: List[Sprite], how_many_phantom_mobs: number):
global statusbar
for index6 in range(how_many_phantom_mobs):
phantom = sprites.create(assets.image("""
skeleton
"""), SpriteKind.Phantom_mob)
statusbar = statusbars.create(30, 3, StatusBarKind.health)
statusbar.set_color(2, 13)
statusbar.set_status_bar_flag(StatusBarFlag.SMOOTH_TRANSITION, True)
statusbar.attach_to_sprite(phantom)
sprites.set_data_number(snake, "HP", 5)
animation.run_image_animation(phantom,
assets.animation("""
phantom_anim
"""),
200,
True)
list_mob34234.append(phantom)
def create_mob_cap_phantom_boss(list_mob222222: List[Sprite], how_many_mobs22: number):
global statusbarboss
for index7 in range(how_many_mobs22):
phantom_boss = sprites.create(assets.image("""
phantom_boss
"""),
SpriteKind.Phantom_boss_mob)
statusbarboss = statusbars.create(80, 3, StatusBarKind.health)
statusbarboss.set_color(2, 13)
statusbarboss.set_status_bar_flag(StatusBarFlag.SMOOTH_TRANSITION, True)
statusbarboss.attach_to_sprite(phantom_boss)
sprites.set_data_number(phantom_boss, "HP", 6)
animation.run_image_animation(phantom_boss,
assets.animation("""
phantomboss_anim0
"""),
200,
True)
list_mob222222.append(phantom_boss)
# Función para los mobs creados, spawnerlos en el mapa
def create_all_mobs():
# Spawn dels "Monster_mob"
create_mob_cap(list_mobcap_enemyMobs1, 7)
generate_mobs_in_map(list_mobcap_enemyMobs1, 1350, 1800, 850, 1150)
create_mob_cap(list_mobcap_enemyMobs2, 5)
generate_mobs_in_map(list_mobcap_enemyMobs2, 1550, 1800, 200, 550)
# Spawn dels "Peaceful_mob"
# Big lake
create_mob_cap_fish2(list_mobcap_fish1, 2)
generate_mobs_in_map(list_mobcap_fish1, 780, 900, 710, 960)
create_mob_cap_fish(list_mobcap_fish2, 2)
generate_mobs_in_map(list_mobcap_fish2, 640, 740, 710, 960)
create_mob_cap_fish(list_mobcap_fish3, 2)
generate_mobs_in_map(list_mobcap_fish3, 640, 840, 650, 800)
create_mob_cap_fish2(list_mobcap_fish4, 2)
generate_mobs_in_map(list_mobcap_fish4, 540, 640, 740, 850)
# Small left lake
create_mob_cap_fish(list_mobcap_fish5, 2)
generate_mobs_in_map(list_mobcap_fish5, 75, 125, 1150, 1275)
create_mob_cap_fish2(list_mobcap_fish6, 2)
generate_mobs_in_map(list_mobcap_fish6, 75, 125, 1150, 1275)
# Small right lake
create_mob_cap_fish(list_mobcap_fish7, 2)
generate_mobs_in_map(list_mobcap_fish7, 1660, 1725, 80, 170)
create_mob_cap_fish2(list_mobcap_fish8, 2)
generate_mobs_in_map(list_mobcap_fish8, 1660, 1750, 80, 170)
# Spawn dels "Crab_mob"
create_mob_cap_crab(list_mobcap_crab1, 3)
generate_mobs_in_map(list_mobcap_crab1, 560, 620, 600, 700)
create_mob_cap_crab(list_mobcap_crab2, 2)
generate_mobs_in_map(list_mobcap_crab2, 920, 1000, 700, 800)
create_mob_cap_crab(list_mobcap_crab3, 3)
generate_mobs_in_map(list_mobcap_crab3, 560, 620, 970, 1020)
create_mob_cap_crab(list_mobcap_crab4, 2)
generate_mobs_in_map(list_mobcap_crab4, 820, 900, 1000, 1070)
# Spawn dels "Snake_mob"
create_mob_cap_snake(list_mobcap_snake1, 3)
generate_mobs_in_map(list_mobcap_snake1, 1100, 1200, 1700, 1800)
create_mob_cap_snake(list_mobcap_snake2, 2)
generate_mobs_in_map(list_mobcap_snake2, 1200, 1340, 1460, 1520)
create_mob_cap_snake(list_mobcap_snake3, 3)
generate_mobs_in_map(list_mobcap_snake3, 1600, 1780, 1350, 1450)
# Spawn dels "Phantom_mob"
create_mob_cap_phantom(list_mobcap_phantom, 7)
generate_mobs_in_map(list_mobcap_phantom, 1500, 1850, 1675, 1900)
# Spawn del "Phantom_boss"
create_mob_cap_phantom_boss(list_mobcap_phantomboss, 1)
generate_mobs_in_map(list_mobcap_phantomboss, 1865,1865,1860,1860)
# Creación de sprites de casas
def create_sprites(pos_x: number, pos_y: number):
global sprite_house1
sprite_house1 = sprites.create(img("""
...........................................................................................
................................eeeeeeeeeeeeeeeeeeeeeeeeeee................................
...............................eeeeeeeeeeeeeeeeeeeeeeeeeeeee...............................
..............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeee...............................
..............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..............................
..............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..............................
.............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.............................
.............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.............................
............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee............................
............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee............................
...........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...........................
...........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...........................
..........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..........................
..........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..........................
.........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.........................
.........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.........................
........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........................
........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........................
.......................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.......................
.......................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.......................
....................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....................
.................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.................
..............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..............
...........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...........
.........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeee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eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecfffffffffffffffffffffffffffceeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffcccccffffffffffffeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeecfffffffffffcb6666cfffffffffffceeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffcccccccfcb666666cfcccccccfffeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeecfffccccccccc6b66666cccccccccfffceeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeefffcccccccccc69999b6ccccccccccfffeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeecfffcccccccccc699999bccccccccccfffceeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeefffcccccccccccc69999ccccccccccccfffeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeecfffccccccccccccc699cccccccccccccfffceeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeefffcccccccccccccccccccccccccccccccfffeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeecfffcccccccccccccccccccccccccccccccfffceeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeefffcccccccccccccccccccccccccccccccccfffeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeecfffcccccccccccccccccccccccccccccccccfffceeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecceeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeccceeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeecceeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeccebbeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeebbecceeeeeeeeeeeeeee
eeeeeeeeeeeeccebbbbbeeeeebdddddddddddddddddddddddddddddddddddddddbeeeeebbbbbecceeeeeeeeeeee
eeeeeeeeeecebbbbbbddeeeeebddddeeeeeeeeeeeebdddddbeeeeeeeeeeeeddddbeeeeeddbbbbbbeceeeeeeeeee
eeeeeeeeeebbbbbdddddeebbebdddde6b66b66666bbdddddbb666b666666eddddbebbeedddddbbbbbeeeeeeeeee
eeeeeeeeeebbddddddddeebbebddddeb66b666666bbdddddbb6666666666eddddbebbeeddddddddbbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebdddde66b6666669bbdddddbb6b6666666deddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebdddde9999999999bbdddddbb99999999d9eddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebdddde9999999999bbdddddbb9999999d99eddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebdddde9999999999bbdddddbb999999d99deddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebddddebbbbbbbbbbbbdddddbbbbbbbdbbdbeddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebddddeeeeeeeeeeeebdddddbeeeeeeeeeeeeddddbebbeedddddddddbeeeeeeeeee
eeeeeeeeeebdddddddddeebbebdddddddddddddddddddddddddddddddddddddddbebbeedddddddddbeeeeeeeeee
ceeeeeeeeebdddddddddeebbebdddddddddddddddddddddddddddddddddddddddbebbeedddddddddbeeeeeeeeec
ceeeeeeceebbbbbbbbbbeebbebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbebbeebbbbbbbbbbeeceeeeeec
ceeeeeeeeeeeeeeeeeeeebbbeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbeeeeeeeeeeeeeeeeeeeec
cccceeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeeee....
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
...ccccceeeeeeeeeeeeeeeeeeeeeeeeccccccccccccccccccccccccccceeeeeeeeeeeeeeeeeeeeeeeecccc....
........eeeeeebbbbbbbbbbbbbbbbbecccccccccccccbcccccccccccccebbbbbbbbbbbbbbbbbeeeeee........
........eeeeeebbbbbbbbbbbbbbbbbecccccccccccccbcccccccccccccebbbbbbbbbbbbbbbbbeeeeee........
........eeeeeebbbbbbbbbbbbbbbbbeccecceceececcbcceccecceccecebbbbbbbbbbbbbbbbbeeeeee........
........eeeeeedddddddddddddddddeccecceceececcbcceccecceccecedddddddddddddddddeeeeee........
........eeeeeedddddbbbbbbddddddeccecceceececcbccecceccecceceddddddbbbbbbdddddeeeeee........
........ebbbeedddddbcbbebddddddeccecceceececcbccecceccecceceddddddbebbbbdddddeebbbe........
........ebbbeedddddbb66ebddddddeccecceceececcbccecceccecceceddddddbe66bbdddddeebbbe........
........ebbbeedddddbb66ebddddddeccecceceeccecbcecceeccecceceddddddbe66bbdddddeebbbe........
........ebbbeedddddbbb6ebddddddecceccecebbbbebebbbbeccecceceddddddbeb6bbdddddeebbbe........
........ebbbeedddddbb99ebddddddecceccecebddbcbcbddbeccecceceddddddbe99bbdddddeebbbe........
........ebbbeedddddbb99ebddddddecceccececbbccbccbbceccecceceddddddbe99bbdddddeebbbe........
........ebbbeedddddbb99ebddddddeccecceceeeeecbceeececcecceceddddddbe99bbdddddeebbbe........
........ebbbeedddddbb99ebddddddeccecceceececcbccecceccecceceddddddbb99bbdddddeebbbe........
........eeeeeedddddbeeeebddddddeccecceceececcbccecceccecceceddddddbeeeebdddddeeeeee........
........eeeeeedddddbbbbbdddddddeccecceceececcbcceccecceccecedddddddbbbbbdddddeeeeee........
........eeeeeedddddddddddddddddeccecceceececcbcceccecceccecedddddddddddddddddeeeeee........
........eeeeeebbbbbbbbbbbbbbbbbeccecceceececcbcceccecceccecebbbbbbbbbbbbbbbbbeeeeee........
........eeeeeebbbbbbbbbbbbbbbbbe...........................ebbbbbbbbbbbbbbbbbeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeee...........................eeeeeeeeeeeeeeeeeeeeeeee........
........eeeeec...............................................................ceeeee........
...........................................................................................
"""),
SpriteKind.Stuff)
sprite_house1.set_position(pos_x, pos_y)
return sprite_house1
def create_sprites2(posx3: number, posy3: number):
global sprite_house2
sprite_house2 = sprites.create(img("""
...........................eeeeeeeeeeeeeeeeeeee............................
........................eeeeeeeeeeeeeeeeeeeeeeeeee.........................
......................eeeeeeeeeeeeeeeeeeeeeeeeeeeeee.......................
....................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.....................
..................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...................
................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.................
..............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbbbbbbb...............
............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddddddbee.............
..........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddddddbeeee...........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebddbbbbbddbeeeeee.........
......eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebddbcccbddbeeeeeeee.......
....eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebddbcccbddbeeeeeeeeee.....
eeeeeeeeeeeeeeeeeee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eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeeecccccccccccccccccccccceeeeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeeeccffffffffffffffffffffffcceeeeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeeeccffffffffffffffffffffffffffcceeeeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeeeeccefffffff669666ff669666fffffffecceeeeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeeeecceeefffffff696669ff696669fffffffeeecceeeeeeeeeeeeeeeeee.
eeeeeeeeeeeeeeeecceeeeeffccccf9666d9ff9666d9fccccffeeeeecceeeeeeeeeeeeeeee.
eeeeeeeeeeeeeecccceeeeeccccccf999d99ff999d99fcccccceeeeecccceeeeeeeeeeeeee.
eeeeeeeeeeeecccccceebbeccccccffffffffffffffffccccccebbeecccccceeeeeeeeeeee.
eeeeeeeeeeccccccccebbbeccccccccccccccccccccccccccccebbbecccccccceeeeeeeeee.
ceeeeeeeccccccccccebbbeccccccccccccccccccccccccccccebbbecccccccccceeeeeeec.
ceeeeecceeeeeeeeeeebbbeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbeeeeeeeeeeecceeeeec.
ceeecceeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeecceeec.
cccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecccc.
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
......eeeeebbeeeeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.......
......eeeeebbeeeeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.......
......eeeeeddeeeeeeeeeeeeeeeeddddddddddddddddddddddddddddddddddeeeee.......
......eeeeeddeeeeeeeeeeeeeeeeddeeeeeeeeeeeeddddeeeeeeeeeeeeddddeeeee.......
......ebbbeddeeee66eeee66eeeedde6696ee6696edddde6696ee6696eddddebbbe.......
......ebbbeddeee6996ee6996eeedde6966ee6966edddde6966ee6966eddddebbbe.......
......ebbbeddeee6996ee6996eeedde9666ee9666edddde9666ee9666eddddebbbe.......
......ebbbeddeee6996ee69eeeeedde6999ee6999edddde6999ee6999eddddebbbe.......
......ebbbeddeee6996ee6e444eedde999dee999dedddde99ddee99ddeddddebbbe.......
......ebbbeddeee6996ee6e444eedde99d9ee99d9edddeeeeeeeeeeeeeedddebbbe.......
......ebbbeddeee6996ee69eeeeedde9d99ee9d99edddeeeeeeeeeeeeeedddebbbe.......
......ebbbeddeee6996ee6996eeeddeeeeeeeeeeeedddeeeeeeeeeeeeeedddebbbe.......
......ebbbeddeee6996ee6996eeedddddddddddddddddeeeeeeeeeeeeeedddebbbe.......
......ebbbeddeeee66eeee66eeeedddddddddddddddddccccccccccccccdddebbbe.......
......eeeeeddeeeeeeeeeeeeeeeeddddddddddddddddddddddddddddddddddeeeee.......
......eeeeebbeeeeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.......
......eeeeebbeccccccccccccccebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.......
......eeeeeeee..............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.......
......eeeee....................................................eeeee.......
...........................................................................
"""),
SpriteKind.Stuff)
sprite_house2.set_position(posx3, posy3)
return sprite_house2
def create_sprites3(posx2: number, posy2: number):
global sprite_house3
sprite_house3 = sprites.create(img("""
.........................................eeeeeeeeeeeeeeeeee.........................
.......................................eeeeeeeeeeeeeeeeeeeeee.......................
.....................................eeeeeeeeeeeeeeeeeeeeeeeeee.....................
...................................eeeeeeeeeeeeeeeeeeeeeeeeeeeeee...................
.................................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.................
...............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...............
.............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.............
...........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...........
.........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.........
.......................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.......
.....................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.....
...................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
.................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
...............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
.............eebbbbbbbbbbbeeeeeeeeeeeeee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eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeebbbbbbbeecceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeebbbbbeecceeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeebbbeecceeeeecceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbbbeeeeeeeeeeee.
.eeeeeeeeeeeeeeebeecceeeeeecccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeeeeeeee.
.eeeeeeeeeeeeeeeecceceeeecccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeeeeee.
.eeeeeeeeeeeeeecceeeceecccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbcbdbeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeccccccceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeecccccceeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeeeeeeee.
.eeeeeeeeeeeeeeeecccccceeeeeccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbeceeeeeeeeeee.
.eeeeeeeeeeeeeeeecccceeeeeecccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbecceeeeeeeeee.
.eeeeeeeeeeeeeeeeececeeeecccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbecfceeeeeeeee.
.eeeeeeeeeeeeeeeeeeeceecccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeceebbbeccffeeeeeeee.
.eeeeeeeeeeeeeeeeeeeccccccceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefcceebeccccfeeeeeee.
.eeeeeeeeeeeeeeeeeecccccceeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffcceeccccceeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecffccccccceeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccffccccceeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccccfccceeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecccccccccccccceeeeeeeeeeeeccccffceeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccffffffffffffffcceeeeeeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccffffffffffffffffffcceeeeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecceeffffffffffffffffffeecceeeeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecceeeeffffffffffffffffffeeeecceeeeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccfeeeeeffccccccccccccccffeeeeefcceeeeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccfffeebbeccccccccccccccccccebbeefffcceeeeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeeeccfffccebbbeccccccccccccccccccebbbeccfffcceeeeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeeeccfffccccebbbeccccccccccccccccccebbbeccccfffcceeeeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeeeeccfffccccccebbbeccccccccccccccccccebbbeccccccfffcceeeeeeee.
.eeeeeeeeeeeeeeeeeeeeeecceeeeeeeeeeeebbbeeeeeeeeeeeeeeeeeeeebbbeeeeeeeeeeeecceeeeec.
.eeeeeeeeeeeeeeeeeeeeccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeecceeec.
.eeeeeeeeeeeeeeeeeecceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecccc.
.eeeeeeeeeeeeeeeecceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
.eeeeeeeeeeeeeecceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
.eeeeeeeeeeeeccbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeeeeeeeeeeeeebbbbbbbbbbbbbeeeee.......
.eeeeeeeeeeccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeeeeeeeeeeeeebbbbbbbbbbbbbeeeee.......
.ceeeeeeeccddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeedddddddddddddeeeee.......
.ceeeeeccdddddeeeeddeeeeddddddeeeeddeeeedddeeeeeeeeeeeeeeeedddddeeedddddeeeee.......
.ceeeccbedddde6696ee6696edddde6696ee6696eddeeeeeeeeeeeeeeeedddde669eddddebbbe.......
.ccccbbbedddde6966ee6966edddde6966ee6966eddeeeeeeeeeeeeeeeedddde696eddddebbbe.......
....ebbbedddde9666ee9666edddde9666ee9666eddeeeeeeeeeeeeeeeedddde966eddddebbbe.......
....ebbbedddde6999ee6999edddde6999ee6999eddeeeeeeeeeeeeeeeedddde699eddddebbbe.......
....ebbbedddde99ddee99ddedddde9999ee9999eddeeeeeeeeeee444eedddde999eddddebbbe.......
....ebbbedddeeeeeeeeeeeeeeddde999dee999deddeeeeeeeeeee444eedddde999eddddebbbe.......
....ebbbedddeeeeeeeeeeeeeeddde99d9ee99d9eddeeeeeeeeeeeeeeeedddde99deddddebbbe.......
....ebbbedddeeeeeeeeeeeeeeddde9d99ee9d99eddeeeeeeeeeeeeeeeedddde9d9eddddebbbe.......
....ebbbedddeeeeeeeeeeeeeeddddeeeeddeeeedddeeeeeeeeeeeeeeeedddddeeedddddebbbe.......
....ebbbedddccccccccccccccdddddddddddddddddeeeeeeeeeeeeeeeedddddddddddddebbbe.......
....eeeeeddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeedddddddddddddeeeee.......
....eeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeeeeeeeeeeeeebbbbbbbbbbbbbeeeee.......
....eeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeccccccccccccccebbbbbbbbbbbbbeeeee.......
....eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..............eeeeeeeeeeeeeeeeeee.......
....eeeee...............................................................eeeee.......
....................................................................................
....................................................................................
"""),
SpriteKind.Stuff)
sprite_house3.set_position(posx2, posy2)
return sprite_house3
def create_sprites4(posx4: number, posy4: number):
global sprite_house4
sprite_house4 = sprites.create(img("""
................................................................................................................
............................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..........................
..........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........................
........................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee......................
......................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....................
....................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..................
..................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee................
................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..............
..............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee............
............eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..........
..........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee........
........eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbbbeeeee......
......eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeee....
....eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeccc.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbcbdbeeeeeeeeec.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeeec.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeeeeec.
eeeeeeeeeeeeee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eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecccccccccccccccccccccccccccccccccccccccccccccccccc.
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee....
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecbbeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbbbeeeeeeeeeeecbbeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeeeeeeecddeeeeedddddddddddddddddddddddddddddeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeeeeecddeeeeeddddddddddeeeeeeeeeeeeeeeedddeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbcbdbeeeeeeeeeeecddebbbeddeeeeeeddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdbbbdbeeeeeeeeeeecddebbbedde6966eddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebdddddbeeeeeeeeeeecddebbbedde9666eddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbeceeeeeeeeeecddebbbedde9999eddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbecceeeeeeeeecddebbbedde999deddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebbbbbecfceeeeeeeecddebbbedde99d9eddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeceebbbeccffeeeeeeecddebbbedde9d99eddee44eeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefcceebeccccfeeeeeecddebbbeddeeeeeeddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffcceeccccceeeeeecddebbbeddddddddddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeecffccccccceeeeeecddebbbeddddddddddeeeeeeeeeeeeeeeedddebbbe.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeccffccccceeeeeecddeeeeeddddddddddeeeeeeeeeeeeeeeedddeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeeeccccceeeeeeeeeeeeeeccccfccceeeeeecbbeeeeebbbbbbbbbbeeeeeeeeeeeeeeeebbbeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeeeccfffffccceeeeeeeeeeeeccccffceeeeeecbbeeeeebbbbbbbbbbeccccccccccccccebbbeeeee.........
eeeeeeeeeeeeeeeeeeeeeeeeccffffffffffcceeeeeeeeeeeeeeeeeeeeeeeceeeeeeeeeeeeeeeeee..............eeeeeeeee.........
eeeeeeeeeeeeeeeeeeeeeeccffffffffffffffcceeeeeeeeeeeeeeeeeeeeec..eeeee.............................eeeee.........
eeeeeeeeeeeeeeeeeeeecceffffffffffffffffecceeeeeeeeeeeeeeeeeeec..................................................
eeeeeeeeeeeeeeeeeecceeeffffffffffffffffeeecceeeeeeeeeeeeeeeeec..................................................
eeeeeeeeeeeeeeeecceeeeeffffccccccccffffeeeeecceeeeeeeeeeeeeeec..................................................
eeeeeeeeeeeeeeccffeeeeeffccccccccccccffeeeeeffcceeeeeeeeeeeeec..................................................
eeeeeeeeeeeeccffffeebbeccccccccccccccccebbeeffffcceeeeeeeeeeec..................................................
eeeeeeeeeeccffffffebbbeccccccccccccccccebbbeffffffcceeeeeeeeec..................................................
ceeeeeeeccffffffccebbbeccccccccccccccccebbbeccffffffcceeeeeeec..................................................
ceeeeeccffffffccccebbbeccccccccccccccccebbbeccccffffffcceeeeec..................................................
ceeecceeeeeeeeeeeeebbbeeeeeeeeeeeeeeeeeebbbeeeeeeeeeeeeecceeec..................................................
cccceeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbeeeeeecccc..................................................
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.....................................................
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.....................................................
...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.....................................................
.......eeeeebbbeeeeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbeeeee.........................................................
.......eeeeebbbeeeeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbeeeee.........................................................
.......eeeeedddeeeeeeeeeeeeeeeedddddddddddddddddddeeeee.........................................................
.......eeeeedddeeeeeeeeeeeeeeeedddeeeeeeeeeeedddddeeeee.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde669666666edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde696696666edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde966966666edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeee444eedddeeeeeeeeeeedddddebbbe.........................................................
.......ebbbedddeeeeeeeeeee444eeddde999999999edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde99999999dedddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde9999d99d9edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeeddde999d99d99edddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeedddeeeeeeeeeeedddddebbbe.........................................................
.......ebbbedddeeeeeeeeeeeeeeeedddddddddddddddddddebbbe.........................................................
.......eeeeedddeeeeeeeeeeeeeeeedddddddddddddddddddeeeee.........................................................
.......eeeeebbbeceeeeeeeeeeeeeebbbbbbbbbbbbbbbbbbbeeeee.........................................................
.......eeeeebbbeccccccccccccccebbbbbbbbbbbbbbbbbbbeeeee.........................................................
.......eeeeeeeee..............eeeeeeeeeeeeeeeeeeeeeeeee.........................................................
.......eeeee......................................eeeee.........................................................
................................................................................................................
................................................................................................................
................................................................................................................
"""),
SpriteKind.Stuff)
sprite_house4.set_position(posx4, posy4)
return sprite_house4
# Destruir todos los sprites
def destroy_all_sprites():
sprites.destroy_all_sprites_of_kind(SpriteKind.NPC)
sprites.destroy_all_sprites_of_kind(SpriteKind.Stuff)
sprites.destroy_all_sprites_of_kind(SpriteKind.Citizen1)
sprites.destroy_all_sprites_of_kind(SpriteKind.Citizen2)
sprites.destroy_all_sprites_of_kind(SpriteKind.Citizen3)
sprites.destroy_all_sprites_of_kind(SpriteKind.Mayor1)
sprites.destroy_all_sprites_of_kind(SpriteKind.Mayor2)
sprites.destroy_all_sprites_of_kind(SpriteKind.Peaceful_mob)
sprites.destroy_all_sprites_of_kind(SpriteKind.Monster_mob)
sprites.destroy_all_sprites_of_kind(SpriteKind.Snake_mob)
sprites.destroy_all_sprites_of_kind(SpriteKind.Crab_mob)
sprites.destroy_all_sprites_of_kind(SpriteKind.Phantom_mob)
sprites.destroy_all_sprites_of_kind(SpriteKind.Peaceful_mob)
# Función para crear los edificios del pueblo grande
def town_buildings_2():
# Town 2
create_sprites3(250, 1672)
create_sprites3(520, 1560)
create_sprites3(620, 1560)
create_sprites(400, 1653)
create_sprites2(520, 1672)
create_sprites2(600, 1672)
create_sprites2(680, 1672)
create_sprites4(568, 1417)
create_sprites4(175, 1450)
# Función para crear los edificios del pueblo pequeño
def town_buildings_1():
# Town 1
create_sprites(1290, 100)
create_sprites2(1390, 120)
create_sprites3(1180, 120)
create_sprites4(1500, 105)
# Función para colocar los mobs generados
def generate_mobs_in_map(list_mob2: List[Sprite], x1: number, x2: number, y1: number, y2: number):
for mob in list_mob2:
x_pos_mob1 = randint(x1, x2)
y_pos_mob1 = randint(y1, y2)
mob.set_position(x_pos_mob1, y_pos_mob1)
# Dirección de donde mira el jugador cambiar dirección del proyectil
def on_a_pressed():
global projectile
if direction == 1:
projectile = sprites.create_projectile_from_sprite(assets.image("""
arrow
"""), mySprite, -150, 0)
elif direction == 2:
projectile = sprites.create_projectile_from_sprite(assets.image("""
arrow0
"""), mySprite, 150, 0)
elif direction == 3:
projectile = sprites.create_projectile_from_sprite(assets.image("""
arrow1
"""), mySprite, 0, -150)
elif direction == 4:
projectile = sprites.create_projectile_from_sprite(assets.image("""
arrow2
"""), mySprite, 0, 150)
else:
pass
controller.A.on_event(ControllerButtonEvent.PRESSED, on_a_pressed)
def on_up_pressed():
global direction
direction = 3
animation.run_image_animation(mySprite, assets.animation("""
myAnim4
"""), 200, True)
controller.up.on_event(ControllerButtonEvent.PRESSED, on_up_pressed)
def on_left_pressed():
global direction
direction = 1
animation.run_image_animation(mySprite, assets.animation("""
myAnim3
"""), 200, True)
controller.left.on_event(ControllerButtonEvent.PRESSED, on_left_pressed)
def on_right_pressed():
global direction
direction = 2
animation.run_image_animation(mySprite, assets.animation("""
myAnim2
"""), 200, True)
controller.right.on_event(ControllerButtonEvent.PRESSED, on_right_pressed)
def on_down_pressed():
global direction
direction = 4
animation.run_image_animation(mySprite, assets.animation("""
myAnim
"""), 200, True)
controller.down.on_event(ControllerButtonEvent.PRESSED, on_down_pressed)
# Función recursiva para ver el número más pequeño dentro de una lista
def find_min(my_list: List[number]):
if len(my_list) == 0:
return None
if len(my_list) == 1:
return my_list[0]
temp = my_list[0] if my_list[0] < my_list[1] else my_list[1]
my_list[1] = temp
return find_min(my_list.slice(1))
# Al tocar el mago empieza dialogo
def on_overlap_tile(sprite422, location32):
global keep_asking, user_option, conversation_done
if conversation_done == False:
keep_asking = True
game.splash("\"Hola\"")
game.splash("\"Gràcies per venir\"")
game.splash("\"T'hem cridat ja que tenim uns quants problemes en els pobles\"")
game.splash("\"Ens ajudaràs?\"")
while keep_asking == True:
user_option = game.ask_for_string("")
if user_option == "SI" or user_option == "si":
game.splash("\"Gràcies per voler ajudar-nos\"")
keep_asking = False
elif user_option == "NO" or user_option == "no":
game.splash("\"El 'NO', no era una opció\"")
game.splash("\"Et segueixo explicant\"")
keep_asking = False
else:
game.splash("\"No t'he entès\"")
game.splash("\"Torna'm a dir-ho però més clar\"")
game.splash("\"Per resoldre aquestes missions, hauràs d'anar a cada poble a preguntar als seus habitants \"")
game.splash("\"... \"")
game.splash("\"S'hem oblida alguna cosa ... \"")
game.splash("\"JA SÈ! IMPORTANT ! \"")
game.splash("\"Per cada missió que completis tindràs un recompensa,\"")
game.splash("\"així que no t'oblidis de buscar-me\"")
game.splash("\"Com a últim punt, per anar cap a la zona dels pobles, has d'anar abaix a la dreta del mapa i agafar el teletransportador\"")
conversation_done = True
scene.on_overlap_tile(SpriteKind.player,
sprites.swamp.swamp_tile16,
on_overlap_tile)
# Cuando el jugador toca al alcalde del pueblo grande
def on_on_overlap4(sprite, otherSprite):
global conversation_done5
if conversation_done5 == False:
game.splash("\"Si has ajudat al altre alcalde, junt amb aquesta clau podrás entrar a la casa abandonada\"")
game.splash("\"Hey Max! Gràcies per venir, tenim un gran problema.\"")
game.splash("\"La casa més gran porta anys abandonada, però últimament, sentim sorolls extranys al soterrani.\"")
game.splash("\"Hi ha històries que diuen que pot ser l'entrada d'una antiga masmorra.\"")
game.splash("\"Ves i descobreix què està passant.\"")
reward = "'Mitja Clau Pt2 [Casa Encantada]'"
inventory.append(reward)
game.show_long_text("Has aconseguit :" + reward, DialogLayout.BOTTOM)
conversation_done5 = True
sprites.on_overlap(SpriteKind.player, SpriteKind.Mayor1, on_on_overlap4)
# Cuando el jugador toca al alcalde del pueblo pequeño
def on_on_overlap11(sprite43, otherSprite34):
global conversation_done5
if conversation_done5 == False:
game.splash("\"Max, la situació és crítica. Monstres al voltant del llac (segint el camí cap a la dreta) impedeixen pescar i tallar fusta.\"")
game.splash("\"Sense menjar ni llenya, l'hivern serà dur.\"")
game.splash("\"Ves al llac, elimina els monstres i assegura la supervivència de Johto.\"")
game.splash("\"Confiem en tu, Max!\"")
game.show_long_text("Has aconseguit la missió 'Mata als monstres del bosc', un cop finalitzada rebrás una recompensa",
DialogLayout.BOTTOM)
conversation_done5 = True
sprites.on_overlap(SpriteKind.player, SpriteKind.Mayor2, on_on_overlap11)
# Cuando el jugador choca con enemigos
def on_on_overlap(sprite9, otherSprite62):
info.change_life_by(-1)
scene.camera_shake(4, 200)