forked from HENRYMARTIN5/Clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editrDefautMap.js
723 lines (686 loc) · 35 KB
/
editrDefautMap.js
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
// Abandon hope, all ye who enter here
window.wallimg = new Image();
wallimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADNJREFUOE9j9PT0/M9AAWAEGcDDw0OWEV++fGEYNWA0DIZLOvD19f3PwcExwHmBLOuhmgCrKEex0FtLIQAAAABJRU5ErkJgggAA";
window.elevatorimg = new Image();
elevatorimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAG5JREFUOE9jbPJX/W+jwsdADjhy5xMD4+A2AOREEMDlRbxegGmGhQ02Q3AagK4ZlyFYDYBpfvD6C4OCKA9YLzIb2SVYDVhy/BlYU4ylFANyGCCLw1xEMBopCkSQLcPAAGwBh5xnCAYioQw2OAwAAKSneWF2TERPAAAAAElFTkSuQmCC";
window.bouncerimg = new Image();
bouncerimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAL1JREFUWEdjnOSx6D/DAALGQeeAQO0ImobH+qsrUMzHCIEBcwCtLUYPVlhIwENg1AFDJgTQUzF63BLrEbLTwIA5gJDFpIYEySEwYA4g1WJiQ4LoEBh1wGgIDHgITDvRC07YkrzSJLUTnn9+ClafZVGMVR/RuWDAHQBzPrEOIeRzmHlEh8CgcQC6Q3AlCFxxTrUWESwqBswBJGUFPIpJTgPUspjsRDj8HQDzIbFtOnJDZPD2jMj1EaX6Brx3DACes9+BlKvVwAAAAABJRU5ErkJgggAA";
window.unlockimg = new Image();
unlockimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIZJREFUOE9jrK+v/8/JyclADvj+/TsDY0dHx39yNMP0DDIDnh5thftG2rqaKJ/BvQDSHOfEDde0aN9XBmIMARuArBmkEWYQiI0PgCxAMQBmK7prsBkCU0uUC0AugrkGmQ13AcgGXGEAC1iQYpga5PBBSQeEYgGb/CBLSESlHDRFlHuB0uwMAFC6cUuZ0N/DAAAAAElFTkSuQmCC";
window.waterimg = new Image();
waterimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAANBJREFUWEftVrEWQDAM1MnGD9n8mtlg95FsJqYYSuQO1fJ07TW9XC9pXNU2cxZw5WVxGN19noAlbnAFYALyVtMwHp5BcdbFsr8qgAZGcTQBOWC51lIIvXijQDIE2Ayu4tOpAjYT1owa/rQC0QmgphWcVj2nFUiGAOsdH39ZgZ9AMAXYMkOJ+HFVDzxGoO673Znw7l/PV0gSdNEJhB5KLW+8pw+gpkRx6kSkSYYGRnE0AfTzYauH9sDdQytNwHI1ux+fgDQi9u2sTFEzrp0wFoEF5tyeUaMzMqsAAAAASUVORK5CYIIA";
window.goalimg = new Image();
goalimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAK9JREFUWEdjbI6R/c8wgIBx0DmgpoydpuHR0vUTxXyMEBgwB9DaYvRghYUEPASGnAPUL78Be8p6AQeYntfLQ1LaoTgE6O4AmIXo3qRbCNDdAf9+vwV7VvMG/oKSZiEw4A7AlaTRo4JmITBoHYDusKTiLwNTDsAcMuqA0RAYDYHREBiwEIBZjF4yEtsyorhFNOAOIKkBiEUxxSFAdQfADKR183zw9owoDVJy9Q947xgAE4XdgWlb6HsAAAAASUVORK5CYIIA";
window.deathimg = new Image();
deathimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAb9JREFUWEfNlz1OxDAQhWNptQ0H2JZqRQMNRwAajsDeggZuQMctOAI0cARooKOi3SugSF4Rz3OULxpZkVCcFOs4drxv3rz5SYgXTWz+rk332zR7Gy9t1PBmN7fbdPP4nUabt9c/3XT1oXOOhwdoP44NywEgZLL8zCwF4my5GNP6brjfZQRM9AxUByDfCsgm+TRfe/MpfJ/XP00T1AoZ1NzO6RlYDACzvD0fQs/q9iwiQ9zHKLP1MQNLA7B6QTyXtCHL6dIn08ipbTCtFBmYD4CHnBmMlnnq95hyo6AagAerBQKgOKaKnRqQM6O3v5BXQqwO4H2dqqHiGD5qrDa09+tuJYtSPtZ70oLHpBiENkJcDAD68PV3+OQqMaAMqcyY58wXjA5H5D0D1QA8b5MGqNaj9KA9IbLhnDVixIjTCemUEKsDUE/oJSISMLVYSUtOfhl3REy1swNQT/iFf1YVQ6+o3k+7c55QFOgc9Iy9BuiC2QEoEQnSHeJfgEo1ghnUc6WbCasBmBoFXn+gjke+Zj8gA1FzpkfBvwNgImLfX+ps6PtSPhl9GVUHcGMdkXxX6gFLvuX7/MoWQ5YfQqwM4ADxGE162R2WywAAAABJRU5ErkJgggAA";
window.saltwaterimg = new Image();
saltwaterimg.src =
"data:image/png;base64,iVB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wFOjO77Hb+N5NDIIClUjeQEKdqFxkobw+oY1g9vopgo9yBK4Unm+SAnw3O6Ct8GNFH2mNJsMw6/Pg5ZVIZvK9vBeNhOR/6AfInp6+Xc/k4rAPYnIMpvOnDbL880+lsLT/WRgo4+Ap6hupdA3vCICGKPTO1y03dnBnH7wGRgtZ2Mv1elfdCHKE2UM1kA/jNqf//yj4johbrztiC8ARfZ7bfEzXGUxMdnzYVqIr+IfI5DXA5jv024xjQmmonLVWo36SRVTChnpHa4s2j67YT9htOWw1/FkZzYgO7BsrG23bd2qo0kRvM6ahHC3boEN48/xxVnrnc/1nsF219tUprZws3Z67y4oRIaEgBHVhq5n4Hs0lNceQZMb9j7cktY3o3Qy1WZTwbL7HS2ynUJwNiqwkPwsr9h0DEMEaggh6dZblTHupSEpzClvYWtatT10v6KsIakm2boly6trhDJQ+6t2W2b8kNSc6AXdsrtqPFe+fG7d7w3LFl0v9H/sEaiSFD7Yf5QgG4QbzExZUqwz9a03nW5aO11j/c5Wui4D4e+XX+H6IbnZhEI/O53Cb3hwHBjeoL79sMlMZ4O/aRlrikGJN6doWHp6+ReO97gydBO4nDB6Ey5alG/NjKq38qitNTOnLZpOmj72nDxAk/8BxWkkNI6CRLAAAAAASUVORK5CYII=";
window.antibounceimg = new Image();
antibounceimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAALFJREFUWEftl0EOhTAIRPUaPWFP3mt8E5O64Ie8QWPFWLcN8DoMqGut9bc8+KxpAEopQ3Vore31DgUmQDoFeo+6MaKAFI8eoATkWIoPA6hK2MJeXH6ATh69kW2N5x1UIA0AgXhmpKmRFUgDoILQzW2e8LvAM6U6phPgtAIkvTr/7wP47iZUb257r8bhJlQTDQNQN5y3MW18WIHhAPTJdfUcFbhagOInwJ8CJNld54//HW99A/sBTxqtNwAAAABJRU5ErkJgggAA";
window.spedimg = new Image();
spedimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAALNJREFUWEftl0sKwCAMBeNle4PSHqHgEXsYS5FsBHlN/CRCXXRTIePkGTAcGyUiomt/v/PWGXOtYA6Q7mzAaoUfYFkDnGKUHXS71BlwD4BOzuaGGRgGgNR/Law24BZAevLuBoYD1NRrC4sNuAWYNglR+msgqEXqQcQFW1uzLkDrycW3oOyxOwAUtlpI1RkoDUwD6FVYnQE3AFrlZRbEGWADZgBo9kv/iw1IC6D99o9T69fxAyaci01twl6CAAAAAElFTkSuQmCC";
window.airimg = new Image();
airimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADJJREFUOE9jrK+v/8/JyclADvj+/TsDY0dHx39yNMP0jBrAMBqIDKNhAMoPlOcFSrMzAD6dL0uPtm9RAAAAAElFTkSuQmCC";
window.tarimg = new Image();
tarimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAQBJREFUOE+NU10LgkAQ9BQCKRQii6AIol4K+gvS//8LvfUQUgQGIQRqzMKe231o+7LHns7Ozs6p1ezQpuMsQJTvO2UZfMc18xvlAlgvd8H1drHA4jAL4klI9bpuKDsBrD89BQASAA6juBthmiyoQxSFupNrPM3gn5kBini+CsqsjdrP87ZqOvFM0Rj8UwXEUgZqNAKKUjgJ4qPOQBaAqQd/KBvIMwGYawMDs7OPlWbAncAAmnCWgkkz8b06bvJ2aE6XU/UWWESTtmTALJIktRyqRxhS3qULGem0PdMaYZC+R8VG4jfAY/+I6OsizYPREGw+vcZHUZLT4H/52nDuE/kLky2YbjxyP0sAAAAASUVORK5CYIIA";
window.sandimg = new Image();
sandimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAQ5JREFUOE9jPD4p4r+anBgDCNx69ApMIwOYHEwMXQ0jNgP4+fgZPn76iGHY0zdfGYLNRMHi7/7wgGmsBmDoxCEAMhBsAIjhaKQI94KFEhfYBiGWL3CbsHkP7gJi/AwyFARO3PsGpmFhw7imzve/tAg33Az0QINJ7D93H+xKZAASA3sBJIgccMiG4HI6zCAMA9DDA6YQ2QJkNtgA9GgDuQDdZlyugrsAZhPIBaAwgdHIAYacmGDyjG835P0n5E9sKRUeC7BARHc2sgtgrnj54SdGCoV7gVDIYwsXcEL6vyUJHI2gBIIvU8ESEiwPwLyNEoi4bEFOPCCvgQAs8cGj8dq9Z+CUBkr/yLkNxMYXyAB6KrirkPXw4QAAAABJRU5ErkJgggAA";
window.checkpointimg = new Image();
checkpointimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIhJREFUOE9jZM9Z/Z+BAsAIM+Cnsi1JxrDfPQxWDzaAVM0wm0CG4DXAufIWg5xHGMN8+wtYXYfTAJBGGCDZAGTNIENINsC4fhbYcoFfDmCaZANgTocZpOc0jfQwQA6xxIMGI9oAkP9hAFtiIpgS/TfpwA3Y6HcFIzXCDQDJkJofUDITSdkQTTEAv7Fy4Z5FYKEAAAAASUVORK5CYII=";
window.lockedimg = new Image();
lockedimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAC5JREFUOE9jtHWP/c9AAWAEGcArIEaWEZ8/vGIYNWA0DEbTAQMD9cKArKwI1QQApWdIEfa7468AAAAASUVORK5CYIIA";
window.iceimg = new Image();
iceimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAJJJREFUOE9j9N7w/z8DBYCREgO2HrvMADfAU4GBQYqHeKcEzboMVoxiAEiAGEN2P2JgmL4DhwGEDAFpBgG8BuAyBKaZKAPQDUHWTLQBMEPQNRNtwMZ7DAwqAthjhmAYgDTDADZD8BqArBmXITgNwKYZmyFYDcCnGd0QDAN+/SM+GYPCBMUAUKYgFzAylF2iKDsDAIHrZTO5HBzfAAAAAElFTkSuQmCC";
window.walljumpimg = new Image();
walljumpimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIFJREFUOE9j/LyJ4T8DBYAR2QAeH+JM+rIFoQ6vATCF6AZjNQCbotM3ITaZqjMw4DIEqwtANoA0OxZDDNjfi2kIzBVYDQBpgGmG+RZdDMMAbAFIszAgGAuEwoCgAYTCgKABsIDDFQYgeYKBCPMG0ekAORYGTxjgylo4A5G4vIiqCgAJh3ZR4vXYPAAAAABJRU5ErkJgggAA";
window.spawnimg = new Image();
spawnimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAGZJREFUOE9j5Klm+M9AAWCEGcDTQpopX2og6sEGkKoZZhXIENoYUJWM3Tttc1HFsboApjnXE1Xx5O0QPrIhOA1A1wwzCmTISDEA5GeyAxGkmaJoJCVBUy8lgmwlNT+gZCZSnI2uFgBttFBxn/KikgAAAABJRU5ErkJgggAA";
window.secondaryunlockimg = new Image();
secondaryunlockimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACRVJREFUeF7t3LFtXEcARdFlqkw9EFANzByLgHpQ5FJYgyL3YICO1YaqcOaUAtzCCy4Gc5zPPu758y9kAeLTy9vzx8N/BAhcKfAkAFc+d1+awP8CAuAiELhYQAAufvi+OgEBcAcIXCwgABc/fF+dgAC4AwQuFhCAix++r05AANwBAhcLCMDFD99XJyAA7gCBiwUE4OKH76sTEAB3gMDFAgJw8cP31QkIgDtA4GIBAbj44fvqBOYAfP7+hSIBApHAv3/9mpYFYOJzmEArIACt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7WCaQCApDyGyfQCghA62+dQCogACm/cQKtgAC0/tYJpAICkPIbJ9AKCEDrb51AKiAAKb9xAq2AALT+1gmkAgKQ8hsn0AoIQOtvnUAqIAApv3ECrYAAtP7WCaQCApDyGyfQCghA62+dQCogACm/cQKtgAC0/tYJpAICkPIbJ9AKCEDrb51AKiAAKb9xAq2AALT+1gmkAgKQ8hsn0AoIQOtvnUAqIAApv3ECrYAAtP7WCaQCApDyGyfQCghA62+dQCogACm/cQKtgAC0/tYJpAICkPIbJ9AKCEDrb51AKiAAKb9xAq2AALT+1gmkAgKQ8hsn0AoIQOtvnUAqIAApv3ECrYAAtP7WCaQCApDyGyfQCghA62+dQCogACm/cQKtgAC0/tYJpAICkPIbJ9AKCEDrb51AKiAAKb9xAq2AALT+1gmkAgKQ8hsn0AoIQOtvnUAqIAApv3ECrYAAtP7WCaQCeQDSb2+cAIFJ4Onl7flj+gSHCRA4VkAAjn10fnACu4AA7IY+gcCxAgJw7KPzgxPYBQRgN/QJBI4VEIBjH50fnMAuIAC7oU8gcKyAABz76PzgBHYBAdgNfQKBYwUE4NhH5wcnsAsIwG7oEwgcKyAAxz46PziBXUAAdkOfQOBYAQE49tH5wQnsAgKwG/oEAscK/AYC3oRbRZudqgAAAABJRU5ErkJgggAA";
window.secondarytileimg = new Image();
secondarytileimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAB4tJREFUeF7t1LFNBEEQRUEuACxEOERADJe/gbAIACRSaOOp1XX+7d+pWb3Hx/Pz98WPAIGTAg8BOHnvDk3gX0AAfAgEDgsIwOHLd3QCAuAbIHBYQAAOX76jExAA3wCBwwICcPjyHZ2AAPgGCBwWEIDDl+/oBATAN0DgsIAAHL58RycgAL4BAocFBODw5Ts6AQHwDRA4LCAAhy/f0QmMA/D69kWRAIFI4Of7fbQsACM+fybQCghA62+dQCogACm/cQKtgAC0/tYJpAICkPIbJ9AKCEDrb51AKiAA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zAWEAAxoQeQGCvgADsvTtvTmAsIABjQg8gsFdAAPbenTcnMBYQgDGhBxDYKyAAe+/OmxMYCwjAmNADCOwVEIC9d+fNCYwFBGBM6AEE9gr8AULnhT1b5dx3AAAAAElFTkSuQmCC";
window.mossyimg = new Image();
mossyimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAQtJREFUOE+Fk1ELAUEQx+d06eQoXghJkrxQnn2C+/qeJElCvFCs7tLlNHtmzY3l5mX3bnd+M/OfHScIggTedrzuaKvXZrWT+badOwjwfd9c3Edrs297/QyAzu6hgmFtAkopyAWc3I2GxOoJ5EjUXIDrF7QjmcxodViAM52Nk0FrBDxSJm8AkI50bgCVrpeJxAHkTAGoHFzD8yPNoFQv6vrQUBy05WUO5VIqriyFAhgAlmAz3hE8l6VYReQgCZCQn4B/gmI5jbin41gB6MxbRxpw8QiiASgidoHM5kwR8Q6VhZDbNvp0waqiRTiuy1cbsYW8ffLp8gzMO5DDxC9JgBw0I6JMn48tH2nb/xd0U7XjnLG8hAAAAABJRU5ErkJgggAA";
window.mossimg = new Image();
mossimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAARRJREFUOE+FU6sOwkAQvAbVkJQm/ABIDBqFRqIxWL4BU0XST0Kj0Bgk/ABJaUKqSMlcmMt0W8qqu33M7s7uRlmW1XEcu0t5dirzZNH4q522qqpclOd5DU84wEDHZDhyk8HMg9zfV1e+ngFQwQPA6XZ0y+nKOxEEjhpcPAqXjlOfiBIAqNBgBcMbgZoIul6AvtL/VtBg8Pth6QCGgJdod9jWJMuWjD/77gL0LWz26xqME1EdEQxi0TfIIw9MBLsHYBAUEOtsJ4M/yfQAnD97/JVRK2iR2LUHtmQG6ZK1xsjy2AZB7KoTJLRgWbYBtHOZmCCQqDPGfJUX5UQ3EiABQEep4+N9EETvALqo65ztKbN8eyc45w/CAMgtolHQZQAAAABJRU5ErkJgggAA";
window.coinimg = new Image();
coinimg.src =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAJ1JREFUOE9jrK+v/8/JyclADvj+/TsDY0dHx39smp8ebUURlrauxmoHVgNAmuOcuFE0LNr3lQGbIRgGYNMMMwmbISgGoGuWFGID633+7hfcNeiG4DQAphmmE2YITgOQbUe3GZ2PbAjcBegGgGwkxhW0MwA58IjyAkgDtnAgOhDRDQDxSY5GbIYgJ0eCCQmmmKKkjGwIsu04MxOl2RkA2O+hSy6NaKkAAAAASUVORK5CYIIA";
window.map = {
tile_size: 16,
keys: [
// Void
{
id: 0,
colour: "#333",
solid: 0,
blockname: "Void"
},
// Air
{
id: 1,
colour: "#888",
solid: 0,
img: airimg,
blockname: "Air"
},
// Platform
{
id: 2,
colour: "#555",
solid: 1,
bounce: 0.35,
img: wallimg,
blockname: "Wall"
},
// Water
{
id: 3,
colour: "rgba(121, 220, 242, 0.4)",
friction: {
x: 0.9,
y: 0.9
},
gravity: {
x: 0,
y: 0.1
},
jump: 1,
fore: 1,
img: waterimg,
blockname: "Water"
},
// Elevator
{
id: 4,
colour: "#b37859",
gravity: {
x: 0,
y: -0.1
},
jump: 1,
img: elevatorimg,
blockname: "Elevator"
},
// Bounce
{
id: 5,
colour: "#E373FA",
solid: 1,
bounce: 1.1,
img: bouncerimg,
blockname: "Bouncer"
},
// AntiBounce
{
id: 6,
colour: "#666",
solid: 1,
bounce: 0,
img: antibounceimg,
blockname: "Anti Bouncer"
},
// Color Changer Random
{
id: 7,
colour: "#73C6FA",
solid: 0,
script: "change_colour",
blockname: false
},
// Goal
{
id: 8,
colour: "#FADF73",
solid: 0,
script: "next_level",
img: goalimg,
blockname: "Goal"
},
// Die
{
id: 9,
colour: "#C93232",
solid: 0,
script: "death",
img: deathimg,
blockname: "Lava"
},
// Unlockable Wall
{
id: 10,
colour: "#555",
solid: 1,
img: lockedimg,
blockname: "Unlockable Wall"
},
// Unlock Tile
{
id: 11,
colour: "#0FF",
solid: 0,
script: "unlock",
img: unlockimg,
blockname: "Key"
},
// Saltwater
{
id: 12,
colour: "rgba(121, 220, 242, 0.4)",
friction: {
x: 0.9,
y: 0.95
},
gravity: {
x: 0,
y: -0.07
},
jump: 1,
fore: 1,
img: saltwaterimg,
blockname: "Saltwater"
},
// Speed Zone
{
id: 13,
colour: "rgb(255, 255, 0)",
solid: 0,
fore: 1,
boost: 1,
img: spedimg,
blockname: "gotta go fast zone"
},
// Tar
{
id: 14,
colour: "#453a4f",
friction: {
x: 0.3,
y: 0.1
},
gravity: {
x: 0,
y: 2
},
jump: 1,
fore: 1,
img: tarimg,
blockname: "Tar"
},
// Quick Sand
{
id: 15,
colour: "#edb06e",
friction: {
x: 0.6,
y: 0.5
},
gravity: {
x: 0,
y: 0.3
},
jump: 1,
fore: 1,
img: sandimg,
blockname: "Quicksand"
},
// Checkpoint
{
id: 16,
colour: "#C93232",
solid: 0,
script: "checkpoint",
img: checkpointimg,
blockname: "Checkpoint"
},
// Ice
{
id: 17,
colour: "#112233",
solid: 1,
fore: 1,
bounce: 0.35,
gravity: {
x: 0,
y: 0.1
},
jump: 1,
img: iceimg,
blockname: "slippery stuff"
},
// Wall Jump
{
id: 18,
colour: "#558",
solid: 1,
bounce: 0,
jump: 1,
img: walljumpimg,
blockname: "Wall Jump"
},
// Foreground Wall Block
{
id: 19,
colour: "#553",
solid: 0,
fore: 1,
bounce: 0,
img: wallimg,
blockname: false
},
// Spawn Block
{
id: 20,
colour: "#551",
solid: 0,
fore: 1,
bounce: 0,
img: spawnimg,
blockname: "Spawn Point"
},
// Secondary Unlockable Wall
{
id: 21,
colour: "#535",
solid: 1,
img: secondarytileimg,
blockname: false
},
// Secondary Unlock Tile
{
id: 22,
colour: "#00F",
solid: 0,
script: "unlock2",
img: secondaryunlockimg,
blockname: false
},
// Mossy Wall Block
{
id: 23,
colour: "#355432",
solid: 1,
img: mossyimg,
blockname: "Mossy Wall"
},
// Overhanging Moss
{
id: 24,
colour: "#355456",
solid: 0,
img: mossimg,
blockname: "Overhanging Moss"
},
// Coin block
{
id: 25,
colour: "#FFF",
solid: 0,
img: coinimg,
blockname: false
},
],
// End EDITOR and MAIN similar code
data: [
[
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
[
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
[
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
[
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
[
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1,
1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
[
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
],
],
/* Default gravity of the map */
gravity: {
x: 0.0,
y: 0.3,
},
/* Velocity limits */
vel_limit: {
x: 12345676789,
y: 15.8,
},
/* Movement speed when the key is pressed */
movement_speed: {
jump: 6,
left: 0.3,
right: 0.3,
},
/* The coordinates at which the player spawns and the colour of the player */
player: {
x: 1,
y: 1,
colour: "#FF6B00",
},
/* scripts refered to by the "script" var in the tile keys */
scripts: {
change_colour: 'this.player.colour = "#"+(Math.random()*0xFFFFFF<<0).toString(16);',
/* you could load a new mapvar here */
next_level: 'this.current_map.player.x = 1; this.current_map.player.y = 1; this.checkpoint = false; this.load_map(map);this.current_map.keys[10].solid = 1;this.current_map.keys[10].img = lockedimg;this.current_map.keys[21].solid = 1; this.current_map.keys[21].img = secondarytileimg;window. timemillis = performance.now() - window.start_time;window.start_time = performance.now(); exitFullscreen(); Swal.fire({title:"Level Completed!", html: "<i>"+winmsgs[Math.floor(Math.random()*winmsgs.length)] + "</i><br><br><b>Your time: "+(timemillis*0.001).toFixed(2)+" seconds</b><br><br><button class=\'button-62\' role=\'button\' onclick=\'subTime("+(timemillis*0.001).toFixed(2)+")\'>Submit time to leaderboard</button>", });',
death: 'this.load_map(map);this.current_map.keys[10].solid = 1;this.current_map.keys[10].img = lockedimg;this.current_map.keys[21].solid = 1; this.current_map.keys[21].img = secondarytileimg; if(this.deathmsgs){Swal.fire({title:"You Died!", html: "<i><b>"+deathmsgs[Math.floor(Math.random()*deathmsgs.length)] + "</b></i>", });}',
unlock: "this.current_map.keys[10].solid = 0;this.current_map.keys[10].img = airimg;",
unlock2: "this.current_map.keys[21].solid = 0;this.current_map.keys[21].img = airimg;",
checkpoint: 'this.current_map.player.x = Math.round(this.player.loc.x/16);this.current_map.player.y = Math.round(this.player.loc.y/16); console.log("CHECKPOINT"); this.checkpoint = true;',
},
background: "#222",
};