-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1684 lines (1666 loc) · 76.1 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>nooby31415's page</title>
<link rel="shortcut icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style id="btnend">
button:hover{
background-color:#44AAFF; /* btnend 6 */
}
</style>
<style id="btnstart">
button{
font-family:monospace;
position:absolute;
transition-duration:0.4s;
border:none;
background-color:#0055CC; /* btnstart 5 */
width:100px;
height:40px;
color:#FFFFFF;
border-radius:12px;
}
</style>
<style id="style1">
#ti_div{
position: fixed;
background-color: #3388ffcc;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border-radius: 12px;
z-index:1;
overflow-y:scroll;
}
#ti_text{
font-size: 4em;
text-align:center;
}
#ti_img{
top: 0px;
position: absolute;
}
#ti_img2{
left: calc(100% - 100px);
top: 0px;
position: absolute;
}
#ti_new{
left:200px;
top:500px;
}
#ti_cont{
left:calc(100% - 300px);
top:500px;
}
#save{
position:fixed;
top:0px;
left:0px;
}
body{
font-family:monospace;
background-color:#002244; /* back 1 */
color:#FFFFFF; /* text 2 */
position:relative;
}
#div{
background-color:#3388FF; /* top 3 */
text-align:center;
height:150px;
width:100%;
border-radius:12px;
font-size:20px;
position:relative;
}
#hi_div{
background-color:#77CCFF; /* hint 4 */
text-align:center;
height:30px;
width:calc(100% - 50px);
border-radius:12px;
font-size:15px;
position:absolute;
top:45px;
left:25px;
}
#hi_text{
margin:0px;
top:5px;
position:relative;
}
#ba_next{
top:350px;
}
#rt_mobile{
top:100%;
}
#ma_canvas{
left:-18px;
top:5px;
position:relative;
}
#ma_zoomin{
left:600px;
top:200px;
position:absolute;
}
#ma_zoomout{
left:600px;
top:300px;
position:absolute;
}
#rt{
left:0%;
top:74%;
}
#ab{
left:calc(100% - 100px);
top:74%;
}
#sl{
left:calc(50% - 50px);
top:74%;
}
#ba{
left:calc(25% - 25px);
top:74%;
}
#sa{
left:calc(75% - 75px);
top:74%;
}
#in{
left:calc(12.5% - 12.5px);
top:74%;
}
#ma{
left:calc(87.5% - 87.5px);
top:74%;
}
#th{
left:calc(37.5% - 37.5px);
top:74%;
}
#re{
left:calc(62.5% - 62.5px);
top:74%;
}
#sl_1{
left:0%;
top:30px;
}
#sl_2{
left:calc(50% - 200px);
top:30px;
}
#sl_3{
left:calc(100% - 400px);
top:30px;
}
#sl_spin{
top:165px;
left:307px;
}
#sl_dr1{
position:absolute;
top:440px;
left:100px;
}
#sl_dr2{
position:absolute;
top:490px;
left:100px;
}
#sl_dr3{
position:absolute;
top:540px;
left:100px;
}
#sl_dr4{
position:absolute;
top:590px;
left:100px;
}
#sl_dr5{
position:absolute;
top:640px;
left:100px;
}
#sl_b1{
top:300px;
left:0px;
}
#sl_b2{
top:300px;
left:100px;
}
#sl_b3{
top:350px;
left:0px;
}
#sl_b4{
top:350px;
left:100px;
}
#sl_b5{
top:400px;
left:50px;
}
#sl_b6{
top:450px;
left:0px;
}
#sl_b7{
top:500px;
left:0px;
}
#sl_b8{
top:550px;
left:0px;
}
#sl_b9{
top:600px;
left:0px;
}
#sl_b10{
top:650px;
left:0px;
}
#ba_ptext{
position:absolute;
top:150px;
left:0px;
}
#ba_etext{
position:absolute;
top:150px;
left:400px;
}
#ba_pchar{
position:absolute;
top:202px;
left:0px;
}
#ba_echar{
position:absolute;
top:202px;
left:400px;
}
</style>
</head>
<body id="body">
<div id="ti_div">
<h1 id="ti_text">nooby31415</h1>
<img src="favicon.png" width="100" height="100" id="ti_img">
<img src="favicon.png" width="100" height="100" id="ti_img2">
<button id="ti_new">New Game</button>
<button id="ti_cont">Continue</button>
</div>
<div id="div">
<b>nooby31415</b>
<i>the page everyone needs</i>
<button id="rt">Rickroll Typer</button>
<button id="ab">About</button>
<button id="sl">Slots</button>
<button id="ba">Battle</button>
<button id="sa">Save/Load</button>
<button id="in">Inventory</button>
<button id="ma">Mandelbrot</button>
<button id="th">Themes</button>
<button id="re">Rebirth</button>
</div>
<div id="hi_div">
<p id="hi_text"></p>
</div>
<div id="rt_div">
<button id="rt_mobile"></button>
<p id="rt_text"></p>
</div>
<div id="ab_div">
<h1 id="contents">Contents</h1>
<ul>
<li>About the page and how to use it</li>
<li>Most features</li>
<li>The main game system</li>
<li>Advanced features and tips of the game system</li>
</ul>
<h1 id="about-the-page-and-how-to-use-it">About the page and how to use it</h1>
<p>Please enable JavaScript on your browser for everything to work.
In <a href="https://nooby31415.github.io">https://nooby31415.github.io</a>, you can click the buttons on the top (Rickroll typer, Slots, About, etc.) to navigate through the different features of the page. On mobile, you should turn your device sideways so it works. (I didn't use sub-pages because of saving issues.) This website is created for no reason, idk this was originally intended to be a joke website for me & my friends, but if you can, pls share this website =) CAUTION:This website is always in construction.
It is:</p>
<ul>
<li>Pure JavaScript (no libraries)</li>
<li>Homemade</li>
<li>Customisable</li>
<li>A one file website (excluding additional assets, such as images)</li>
<li>1300+ lines</li>
<li>Open-source</li>
</ul>
<h1 id="most-features">Most features</h1>
<h3 id="rickroll-typer">Rickroll typer</h3>
<p>Like geek typer, but with the lyrics of "Never gonna give you up"</p>
<h3 id="themes">Themes</h3>
<p>Customize the page with your favorite theme! Includes 7 themes.</p>
<h3 id="about">About</h3>
<p>Read about the website.</p>
<h3 id="mandelbrot">Mandelbrot</h3>
<p>(NOTE: Mobile devices or old PCs might not be able to handle this, as you need more computing power for it and it might crash.)
Explore the mandelbrot set by dragging and using the scroll wheel or the buttons to zoom. The mandelbrot set is an infinite fractal that is easy to generate, yet not easy (at least for your computer) to render.</p>
<h1 id="the-main-game-system">The main game system</h1>
<p>This system contains slots, battle, inventory, and save/load.</p>
<h3 id="slots">Slots</h3>
<p>This is the base of the game system. In slots, you can press spin to either gain money/gems or lose some. Money and gems are two different currencies, but right below the slots there is a shop. </p>
<p>In that shop you can:</p>
<ul>
<li>Exchange the two currencies</li>
<li>Rickroll</li>
<li>Buy characters</li>
</ul>
<p>When buying characters, you have 5 options: Common, Uncommon, Rare, Epic, Super rare. If you click on one and have the required gems for it, you can get a character. How to see those characters will be in the next section.</p>
<h3 id="inventory">Inventory</h3>
<p>In inventory, you can see all of your characters that you have unlocked. Click on one to equip it and see its stats.</p>
<h3 id="battle">Battle</h3>
<p>But how do you use those characters? Well, in battle you can battle a CPU opponent using your selected character. Press next for you or the CPU to take a turn in battle, taking away HP from their opponent. If you make the CPU's health go to 0, you win you will get a reward. If you win or lose, the next button will function as a "new opponent" button for the next click.</p>
<p>Here is what all of the stats mean:</p>
<ul>
<li>HP: How much health it has. More health usually means a better character, because it can battle longer.</li>
<li>Range: The range of the damage (HP taken away) to the opponent. Every time you click next, you deal a random number in the range of damage.</li>
<li>Attack: The name of the attack it uses.</li>
<li>Rarity: Common, Uncommon, Rare, Epic, Super rare, and Legendary. The higher the rank is, the better the character is.</li>
</ul>
<h3 id="save-load">Save/Load</h3>
<p>Now that I added automatic save/load, there is really no use for this except for these reasons:</p>
<ul>
<li>Loading older save codes in</li>
<li>Device transfer</li>
<li>Keeping the code if for whatever reason the automatic save/load fails.</li>
</ul>
<p>How to device transfer:</p>
<ol>
<li>On the sending device, write down the save code if you want.</li>
<li>On the receiving device, type in the box the save code.</li>
<li>On the receiving device, press load.</li>
</ol>
<p>It should work.
You can also use older save codes if they are written down.</p>
<h1 id="advanced-features-and-tips-about-the-game-system">Advanced features and tips about the game system</h1>
<p>These might help you in the game system:</p>
<ol>
<li>Writing down the save code often. The automatic save/load has not been tested a lot, and if history is cleared, it might not work.</li>
<li>Slots strategy. As soon you get 3 gems, try cashing them in for money, and do that for a while until you get around $800. Then, you should be safe and spam spin until you get enough gems to buy a character.</li>
<li>Progress through ranks/rarities. You should buy a common/uncommon first, battle for a while to get $ and gems, then get a higher rarity one, battle again, etc, until you either are bored or want to get all of the characters.</li>
</ol>
</div>
<div id="sl_div">
<p id="sl_text"></p>
<button id="sl_spin">Spin</button>
<img src="" id="sl_1" width="100" height="100">
<img src="" id="sl_2" width="100" height="100">
<img src="" id="sl_3" width="100" height="100">
<p id="sl_text"></p>
<button id="sl_b1">$100<br/>Cost:2 gems</button>
<button id="sl_b2">$175<br/>Cost:3 gems</button>
<button id="sl_b3">2 gems<br/>Cost:$100</button>
<button id="sl_b4">3 gems<br/>Cost:$175</button>
<button id="sl_b5">RICKROLL<br/>Cost:5 gems</button>
<button id="sl_b6">Common Cost:12gems</button>
<button id="sl_b7">Uncommon Cost:18gems</button>
<button id="sl_b8">Rare Cost:25gems</button>
<button id="sl_b9">Epic Cost:40gems</button>
<button id="sl_b10">Super rare Cost:55gems</button>
<p id="sl_dr1">
55% common|19% uncommon|10% rare|8% epic |6% super rare |2% legendary
</p>
<p id="sl_dr2">
16% common|50% uncommon|15% rare|10% epic|6% super rare |3% legendary
</p>
<p id="sl_dr3">
13% common|18% uncommon|45% rare|12% epic|7% super rare |5% legendary
</p>
<p id="sl_dr4">
12% common|14% uncommon|17% rare|40% epic|9% super rare |8% legendary
</p>
<p id="sl_dr5">
10% common|12% uncommon|14% rare|19% epic|35% super rare|10% legendary
</p>
</div>
<div id="ba_div">
<p id="ba_ptext"></p>
<p id="ba_etext"></p>
<button id="ba_next">>>Next>></button>
<img src="" id="ba_pchar" width="100" height="100">
<img src="" id="ba_echar" width="100" height="100">
</div>
<div id="sa_div">
<p>Save code:<br/></p>
<p id="sa_code"><br/></p>
<p>Load code:<br/></p>
<input type="text" id="sa_loadt"></input>
<button id="sa_loadb">Load</button>
<p id="sa_text"></p>
</div>
<div id="in_div">
<p id="in_text"></p>
<button id="0" style="width:100px; height:100px;"><img src="" id="i0" width="100" height="100"></button>
<button id="1" style="width:100px; height:100px;"><img src="" id="i1" width="100" height="100"></button>
<button id="2" style="width:100px; height:100px;"><img src="" id="i2" width="100" height="100"></button>
<button id="3" style="width:100px; height:100px;"><img src="" id="i3" width="100" height="100"></button>
<button id="4" style="width:100px; height:100px;"><img src="" id="i4" width="100" height="100"></button>
<button id="5" style="width:100px; height:100px;"><img src="" id="i5" width="100" height="100"></button>
<button id="6" style="width:100px; height:100px;"><img src="" id="i6" width="100" height="100"></button>
<button id="7" style="width:100px; height:100px;"><img src="" id="i7" width="100" height="100"></button>
<button id="8" style="width:100px; height:100px;"><img src="" id="i8" width="100" height="100"></button>
<button id="9" style="width:100px; height:100px;"><img src="" id="i9" width="100" height="100"></button>
<button id="10" style="width:100px; height:100px;"><img src="" id="i10" width="100" height="100"></button>
<button id="11" style="width:100px; height:100px;"><img src="" id="i11" width="100" height="100"></button>
<button id="12" style="width:100px; height:100px;"><img src="" id="i12" width="100" height="100"></button>
<button id="13" style="width:100px; height:100px;"><img src="" id="i13" width="100" height="100"></button>
<button id="14" style="width:100px; height:100px;"><img src="" id="i14" width="100" height="100"></button>
<button id="15" style="width:100px; height:100px;"><img src="" id="i15" width="100" height="100"></button>
<button id="16" style="width:100px; height:100px;"><img src="" id="i16" width="100" height="100"></button>
<button id="17" style="width:100px; height:100px;"><img src="" id="i17" width="100" height="100"></button>
<button id="18" style="width:100px; height:100px;"><img src="" id="i18" width="100" height="100"></button>
<button id="19" style="width:100px; height:100px;"><img src="" id="i19" width="100" height="100"></button>
<button id="20" style="width:100px; height:100px;"><img src="" id="i20" width="100" height="100"></button>
<button id="21" style="width:100px; height:100px;"><img src="" id="i21" width="100" height="100"></button>
<button id="22" style="width:100px; height:100px;"><img src="" id="i22" width="100" height="100"></button>
<button id="23" style="width:100px; height:100px;"><img src="" id="i23" width="100" height="100"></button>
<button id="24" style="width:100px; height:100px;"><img src="" id="i24" width="100" height="100"></button>
<button id="25" style="width:100px; height:100px;"><img src="" id="i25" width="100" height="100"></button>
<button id="26" style="width:100px; height:100px;"><img src="" id="i26" width="100" height="100"></button>
<button id="27" style="width:100px; height:100px;"><img src="" id="i27" width="100" height="100"></button>
<button id="28" style="width:100px; height:100px;"><img src="" id="i28" width="100" height="100"></button>
<button id="29" style="width:100px; height:100px;"><img src="" id="i29" width="100" height="100"></button>
<button id="30" style="width:100px; height:100px;"><img src="" id="i30" width="100" height="100"></button>
<button id="31" style="width:100px; height:100px;"><img src="" id="i31" width="100" height="100"></button>
<button id="32" style="width:100px; height:100px;"><img src="" id="i32" width="100" height="100"></button>
<button id="33" style="width:100px; height:100px;"><img src="" id="i33" width="100" height="100"></button>
<button id="34" style="width:100px; height:100px;"><img src="" id="i34" width="100" height="100"></button>
<button id="35" style="width:100px; height:100px;"><img src="" id="i35" width="100" height="100"></button>
<button id="36" style="width:100px; height:100px;"><img src="" id="i36" width="100" height="100"></button>
<button id="37" style="width:100px; height:100px;"><img src="" id="i37" width="100" height="100"></button>
<button id="38" style="width:100px; height:100px;"><img src="" id="i38" width="100" height="100"></button>
<button id="39" style="width:100px; height:100px;"><img src="" id="i39" width="100" height="100"></button>
<button id="40" style="width:100px; height:100px;"><img src="" id="i40" width="100" height="100"></button>
<button id="41" style="width:100px; height:100px;"><img src="" id="i41" width="100" height="100"></button>
<button id="42" style="width:100px; height:100px;"><img src="" id="i42" width="100" height="100"></button>
<button id="43" style="width:100px; height:100px;"><img src="" id="i43" width="100" height="100"></button>
<button id="44" style="width:100px; height:100px;"><img src="" id="i44" width="100" height="100"></button>
<button id="45" style="width:100px; height:100px;"><img src="" id="i45" width="100" height="100"></button>
<button id="46" style="width:100px; height:100px;"><img src="" id="i46" width="100" height="100"></button>
<button id="47" style="width:100px; height:100px;"><img src="" id="i47" width="100" height="100"></button>
<button id="48" style="width:100px; height:100px;"><img src="" id="i48" width="100" height="100"></button>
<button id="49" style="width:100px; height:100px;"><img src="" id="i49" width="100" height="100"></button>
<button id="50" style="width:100px; height:100px;"><img src="" id="i50" width="100" height="100"></button>
<button id="51" style="width:100px; height:100px;"><img src="" id="i51" width="100" height="100"></button>
<button id="52" style="width:100px; height:100px;"><img src="" id="i52" width="100" height="100"></button>
<button id="53" style="width:100px; height:100px;"><img src="" id="i53" width="100" height="100"></button>
<button id="54" style="width:100px; height:100px;"><img src="" id="i54" width="100" height="100"></button>
<button id="55" style="width:100px; height:100px;"><img src="" id="i55" width="100" height="100"></button>
<button id="56" style="width:100px; height:100px;"><img src="" id="i56" width="100" height="100"></button>
<button id="57" style="width:100px; height:100px;"><img src="" id="i57" width="100" height="100"></button>
<button id="58" style="width:100px; height:100px;"><img src="" id="i58" width="100" height="100"></button>
<button id="59" style="width:100px; height:100px;"><img src="" id="i59" width="100" height="100"></button>
<button id="60" style="width:100px; height:100px;"><img src="" id="i60" width="100" height="100"></button>
<button id="61" style="width:100px; height:100px;"><img src="" id="i61" width="100" height="100"></button>
<button id="62" style="width:100px; height:100px;"><img src="" id="i62" width="100" height="100"></button>
<button id="63" style="width:100px; height:100px;"><img src="" id="i63" width="100" height="100"></button>
<button id="64" style="width:100px; height:100px;"><img src="" id="i64" width="100" height="100"></button>
<button id="65" style="width:100px; height:100px;"><img src="" id="i65" width="100" height="100"></button>
<button id="66" style="width:100px; height:100px;"><img src="" id="i66" width="100" height="100"></button>
<button id="67" style="width:100px; height:100px;"><img src="" id="i67" width="100" height="100"></button>
<button id="68" style="width:100px; height:100px;"><img src="" id="i68" width="100" height="100"></button>
<button id="69" style="width:100px; height:100px;"><img src="" id="i69" width="100" height="100"></button>
<button id="70" style="width:100px; height:100px;"><img src="" id="i70" width="100" height="100"></button>
<button id="71" style="width:100px; height:100px;"><img src="" id="i71" width="100" height="100"></button>
<button id="72" style="width:100px; height:100px;"><img src="" id="i72" width="100" height="100"></button>
<button id="73" style="width:100px; height:100px;"><img src="" id="i73" width="100" height="100"></button>
<button id="74" style="width:100px; height:100px;"><img src="" id="i74" width="100" height="100"></button>
<button id="75" style="width:100px; height:100px;"><img src="" id="i75" width="100" height="100"></button>
<button id="76" style="width:100px; height:100px;"><img src="" id="i76" width="100" height="100"></button>
<button id="77" style="width:100px; height:100px;"><img src="" id="i77" width="100" height="100"></button>
<button id="78" style="width:100px; height:100px;"><img src="" id="i78" width="100" height="100"></button>
<button id="79" style="width:100px; height:100px;"><img src="" id="i79" width="100" height="100"></button>
<button id="80" style="width:100px; height:100px;"><img src="" id="i80" width="100" height="100"></button>
<button id="81" style="width:100px; height:100px;"><img src="" id="i81" width="100" height="100"></button>
<button id="82" style="width:100px; height:100px;"><img src="" id="i82" width="100" height="100"></button>
<button id="83" style="width:100px; height:100px;"><img src="" id="i83" width="100" height="100"></button>
<button id="84" style="width:100px; height:100px;"><img src="" id="i84" width="100" height="100"></button>
<button id="85" style="width:100px; height:100px;"><img src="" id="i85" width="100" height="100"></button>
<button id="86" style="width:100px; height:100px;"><img src="" id="i86" width="100" height="100"></button>
<button id="87" style="width:100px; height:100px;"><img src="" id="i87" width="100" height="100"></button>
<button id="88" style="width:100px; height:100px;"><img src="" id="i88" width="100" height="100"></button>
<button id="89" style="width:100px; height:100px;"><img src="" id="i89" width="100" height="100"></button>
<button id="90" style="width:100px; height:100px;"><img src="" id="i90" width="100" height="100"></button>
<button id="91" style="width:100px; height:100px;"><img src="" id="i91" width="100" height="100"></button>
<button id="92" style="width:100px; height:100px;"><img src="" id="i92" width="100" height="100"></button>
<button id="93" style="width:100px; height:100px;"><img src="" id="i93" width="100" height="100"></button>
<button id="94" style="width:100px; height:100px;"><img src="" id="i94" width="100" height="100"></button>
<button id="95" style="width:100px; height:100px;"><img src="" id="i95" width="100" height="100"></button>
<button id="96" style="width:100px; height:100px;"><img src="" id="i96" width="100" height="100"></button>
<button id="97" style="width:100px; height:100px;"><img src="" id="i97" width="100" height="100"></button>
<button id="98" style="width:100px; height:100px;"><img src="" id="i98" width="100" height="100"></button>
<button id="99" style="width:100px; height:100px;"><img src="" id="i99" width="100" height="100"></button>
<button id="100" style="width:100px; height:100px;"><img src="" id="i100" width="100" height="100"></button>
<button id="101" style="width:100px; height:100px;"><img src="" id="i101" width="100" height="100"></button>
<button id="102" style="width:100px; height:100px;"><img src="" id="i102" width="100" height="100"></button>
<button id="103" style="width:100px; height:100px;"><img src="" id="i103" width="100" height="100"></button>
<button id="104" style="width:100px; height:100px;"><img src="" id="i104" width="100" height="100"></button>
<button id="105" style="width:100px; height:100px;"><img src="" id="i105" width="100" height="100"></button>
<button id="106" style="width:100px; height:100px;"><img src="" id="i106" width="100" height="100"></button>
<button id="107" style="width:100px; height:100px;"><img src="" id="i107" width="100" height="100"></button>
<button id="108" style="width:100px; height:100px;"><img src="" id="i108" width="100" height="100"></button>
<button id="109" style="width:100px; height:100px;"><img src="" id="i109" width="100" height="100"></button>
<button id="110" style="width:100px; height:100px;"><img src="" id="i110" width="100" height="100"></button>
<button id="111" style="width:100px; height:100px;"><img src="" id="i111" width="100" height="100"></button>
<button id="112" style="width:100px; height:100px;"><img src="" id="i112" width="100" height="100"></button>
<button id="113" style="width:100px; height:100px;"><img src="" id="i113" width="100" height="100"></button>
<button id="114" style="width:100px; height:100px;"><img src="" id="i114" width="100" height="100"></button>
<button id="115" style="width:100px; height:100px;"><img src="" id="i115" width="100" height="100"></button>
<button id="116" style="width:100px; height:100px;"><img src="" id="i116" width="100" height="100"></button>
<button id="117" style="width:100px; height:100px;"><img src="" id="i117" width="100" height="100"></button>
<button id="118" style="width:100px; height:100px;"><img src="" id="i118" width="100" height="100"></button>
<button id="119" style="width:100px; height:100px;"><img src="" id="i119" width="100" height="100"></button>
<button id="120" style="width:100px; height:100px;"><img src="" id="i120" width="100" height="100"></button>
<button id="121" style="width:100px; height:100px;"><img src="" id="i121" width="100" height="100"></button>
<button id="122" style="width:100px; height:100px;"><img src="" id="i122" width="100" height="100"></button>
<button id="123" style="width:100px; height:100px;"><img src="" id="i123" width="100" height="100"></button>
<button id="124" style="width:100px; height:100px;"><img src="" id="i124" width="100" height="100"></button>
<button id="125" style="width:100px; height:100px;"><img src="" id="i125" width="100" height="100"></button>
<button id="126" style="width:100px; height:100px;"><img src="" id="i126" width="100" height="100"></button>
<button id="127" style="width:100px; height:100px;"><img src="" id="i127" width="100" height="100"></button>
<button id="128" style="width:100px; height:100px;"><img src="" id="i128" width="100" height="100"></button>
<button id="129" style="width:100px; height:100px;"><img src="" id="i129" width="100" height="100"></button>
<button id="130" style="width:100px; height:100px;"><img src="" id="i130" width="100" height="100"></button>
<button id="131" style="width:100px; height:100px;"><img src="" id="i131" width="100" height="100"></button>
<button id="132" style="width:100px; height:100px;"><img src="" id="i132" width="100" height="100"></button>
<button id="133" style="width:100px; height:100px;"><img src="" id="i133" width="100" height="100"></button>
<button id="134" style="width:100px; height:100px;"><img src="" id="i134" width="100" height="100"></button>
<button id="135" style="width:100px; height:100px;"><img src="" id="i135" width="100" height="100"></button>
<button id="136" style="width:100px; height:100px;"><img src="" id="i136" width="100" height="100"></button>
<button id="137" style="width:100px; height:100px;"><img src="" id="i137" width="100" height="100"></button>
<button id="138" style="width:100px; height:100px;"><img src="" id="i138" width="100" height="100"></button>
<button id="139" style="width:100px; height:100px;"><img src="" id="i139" width="100" height="100"></button>
<button id="140" style="width:100px; height:100px;"><img src="" id="i140" width="100" height="100"></button>
<button id="141" style="width:100px; height:100px;"><img src="" id="i141" width="100" height="100"></button>
<button id="142" style="width:100px; height:100px;"><img src="" id="i142" width="100" height="100"></button>
<button id="143" style="width:100px; height:100px;"><img src="" id="i143" width="100" height="100"></button>
<button id="144" style="width:100px; height:100px;"><img src="" id="i144" width="100" height="100"></button>
<button id="145" style="width:100px; height:100px;"><img src="" id="i145" width="100" height="100"></button>
<button id="146" style="width:100px; height:100px;"><img src="" id="i146" width="100" height="100"></button>
<button id="147" style="width:100px; height:100px;"><img src="" id="i147" width="100" height="100"></button>
<button id="148" style="width:100px; height:100px;"><img src="" id="i148" width="100" height="100"></button>
<button id="149" style="width:100px; height:100px;"><img src="" id="i149" width="100" height="100"></button>
<button id="150" style="width:100px; height:100px;"><img src="" id="i150" width="100" height="100"></button>
<button id="151" style="width:100px; height:100px;"><img src="" id="i151" width="100" height="100"></button>
<button id="152" style="width:100px; height:100px;"><img src="" id="i152" width="100" height="100"></button>
<button id="153" style="width:100px; height:100px;"><img src="" id="i153" width="100" height="100"></button>
<button id="154" style="width:100px; height:100px;"><img src="" id="i154" width="100" height="100"></button>
<button id="155" style="width:100px; height:100px;"><img src="" id="i155" width="100" height="100"></button>
<button id="156" style="width:100px; height:100px;"><img src="" id="i156" width="100" height="100"></button>
<button id="157" style="width:100px; height:100px;"><img src="" id="i157" width="100" height="100"></button>
<button id="158" style="width:100px; height:100px;"><img src="" id="i158" width="100" height="100"></button>
<button id="159" style="width:100px; height:100px;"><img src="" id="i159" width="100" height="100"></button>
<button id="160" style="width:100px; height:100px;"><img src="" id="i160" width="100" height="100"></button>
<button id="161" style="width:100px; height:100px;"><img src="" id="i161" width="100" height="100"></button>
<button id="162" style="width:100px; height:100px;"><img src="" id="i162" width="100" height="100"></button>
<button id="163" style="width:100px; height:100px;"><img src="" id="i163" width="100" height="100"></button>
<button id="164" style="width:100px; height:100px;"><img src="" id="i164" width="100" height="100"></button>
<button id="165" style="width:100px; height:100px;"><img src="" id="i165" width="100" height="100"></button>
<button id="166" style="width:100px; height:100px;"><img src="" id="i166" width="100" height="100"></button>
<button id="167" style="width:100px; height:100px;"><img src="" id="i167" width="100" height="100"></button>
<button id="168" style="width:100px; height:100px;"><img src="" id="i168" width="100" height="100"></button>
<button id="169" style="width:100px; height:100px;"><img src="" id="i169" width="100" height="100"></button>
<button id="170" style="width:100px; height:100px;"><img src="" id="i170" width="100" height="100"></button>
<button id="171" style="width:100px; height:100px;"><img src="" id="i171" width="100" height="100"></button>
<button id="172" style="width:100px; height:100px;"><img src="" id="i172" width="100" height="100"></button>
<button id="173" style="width:100px; height:100px;"><img src="" id="i173" width="100" height="100"></button>
<button id="174" style="width:100px; height:100px;"><img src="" id="i174" width="100" height="100"></button>
<button id="175" style="width:100px; height:100px;"><img src="" id="i175" width="100" height="100"></button>
<button id="176" style="width:100px; height:100px;"><img src="" id="i176" width="100" height="100"></button>
<button id="177" style="width:100px; height:100px;"><img src="" id="i177" width="100" height="100"></button>
<button id="178" style="width:100px; height:100px;"><img src="" id="i178" width="100" height="100"></button>
<button id="179" style="width:100px; height:100px;"><img src="" id="i179" width="100" height="100"></button>
</div>
<div id="ma_div">
<canvas id="ma_canvas" width="512" height="512"></canvas>
<button id="ma_zoomin">Zoom in</button>
<button id="ma_zoomout">Zoom out</button>
<p id="ma_x">X:0</p>
<p id="ma_y">Y:0</p>
<p id="ma_z">Zoom:0</p>
</div>
<div id="th_div">
<br/>
<br/>
<br/>
<button id="th_1">Blue</button>
<br/>
<br/>
<br/>
<button id="th_2">Dark</button>
<br/>
<br/>
<br/>
<button id="th_3">Light</button>
<br/>
<br/>
<br/>
<button id="th_4">Green</button>
<br/>
<br/>
<br/>
<button id="th_5">Yellow</button>
<br/>
<br/>
<br/>
<button id="th_6">Red</button>
<br/>
<br/>
<br/>
<button id="th_7">Purple</button>
</div>
<div id="re_div">
<button id="re_button">Rebirth</button>
</div>
<p><br/><br/><br/>v289</p>
<script>
//////////////////////////////////////////////////////////////////////////////////////////////INIT VARS
var mouseX=0;
var mouseY=0;
var shiftX=0;
var shiftY=0;
var zoom=0;
var p=1;
var i=0;
var m=100;
var g=0;
var char_rarity=0;
var char_num=3;
var char_name=[
["muffin" ,"impostor" ,"happy meal" ,"noob" ,"crewmate" ,"fries" ,"epic face" ,"chicken nugget","blue jerry" ,"grass block" ],
["burger king" ,"computer" ,"gear" ,"happy emoji" ,"mc flurry" ,"pencil" ,"popcorn" ,"search" ,"purple jerry" ,"star" ],
["polish cow" ,"stickman" ,"rick astley" ,"cheeseburger","e" ,"mcdonalds" ,"youtube" ,"yeet" ,"red jerry" ,"m" ],
["shrek" ,"mc chicken" ,"epic rickroll" ,"rubiks cube" ,"discord" ,"android" ,"apple" ,"windows" ,"yellow jerry" ,"battle cat" ],
["mc cafe" ,"trophy" ,"super rickroll" ,"medal" ,"diamond" ,"camera" ,"duolingo" ,"spam" ,"orange jerry" ,"twitch" ],
["nestle crunch","potato" ,"legend rickroll","big mac" ,"dream" ,"pi" ,"pikotaro" ,"math" ,"green jerry" ,"mandelbrot" ],
["coconut" ,"banana" ,"roblox" ,"cereal" ,"soccer ball","box" ,"mayo" ,"blueberry" ,"pink jerry" ,"minecraft" ],
["socks" ,"peppa pig" ,"books" ,"pyraminx" ,"bbq sauce" ,"egg" ,"tetris" ,"megaminx" ,"brown jerry" ,"spoon" ],
["chocolate" ,"calculator" ,"google" ,"piano" ,"robux" ,"donut" ,"toad" ,"bacon" ,"black jerry" ,"fork" ],
["toast" ,"v bucks" ,"toaster" ,"elmo" ,"bitcoin" ,"lime" ,"lemon" ,"mr bean" ,"white jerry" ,"github" ],
["sun" ,"mercury" ,"venus" ,"earth" ,"mars" ,"jupiter" ,"saturn" ,"uranus" ,"teal jerry" ,"neptune" ],
["avocado" ,"mario" ,"sonic" ,"llama" ,"dog" ,"cat" ,"pie" ,"fuzzy dice" ,"bronze jerry" ,"playing cards"],
["psyduck" ,"oreo" ,"poutine" ,"squiggle" ,"the trio" ,"4d cube" ,"jigglypuff" ,"ps5" ,"silver jerry" ,"doritos" ],
["rest" ,"obama prism","music note" ,"skittles" ,"cookies" ,"rock" ,"paper" ,"scissors" ,"gold jerry" ,"coke" ],
["doge" ,"dogecoin" ,"rattata" ,"troll face" ,"weedle" ,"meowth" ,"poliwag" ,"o zone" ,"magenta jerry" ,"axolotl" ],
["corn" ,"john cena" ,"mlg" ,"lego" ,"covid" ,"fortnite" ,"lambo" ,"ms paint" ,"navy blue jerry" ,"squirtle" ],
["pac man" ,"pikachu" ,"poke ball" ,"gaming pc" ,"kahoot" ,"my wifi" ,"money" ,"nothing" ,"dark green jerry","html" ],
["joe" ,"bob" ,"bob rick astley","bob noob" ,"rolly" ,"nooby31415" ,"small potatoes" ,"bach" ,"rainbow jerry" ,"meme man" ]
];
var char_img=[
["muffin.png" ,"among us red.png","happymeal.png" ,"favicon.png" ,"amongusgreen.png","fries.png" ,"epicface.png","chickennugget.png","jerryblue.png" ,"minecraft.png" ],
["burgerking.png" ,"computer.png" ,"gear.png" ,"happyemoji.png" ,"mcflurry.png" ,"pencil.png" ,"popcorn.png" ,"search.png" ,"jerrypurple.png","star.png" ],
["polishcow.png" ,"stickman.png" ,"rickastley.png","cheeseburger.png","E.png" ,"mcdonalds.png","youtube.png" ,"yeet.png" ,"jerryred.png" ,"m.png" ],
["shrek.png" ,"mcchicken.png" ,"rickastley.png","rubikscube.png" ,"discord.png" ,"android.png" ,"apple.png" ,"windows.png" ,"jerryyellow.png","battlecat.png" ],
["mccafe.png" ,"trophy.png" ,"rickastley.png","medal.png" ,"diamond.png" ,"camera.png" ,"duolingo.png","spam.png" ,"jerryorange.png","twitch.png" ],
["nestlecrunch.png","potato.png" ,"rickastley.png","bigmac.png" ,"dream.png" ,"pi.png" ,"ppap.png" ,"math.png" ,"jerry.png" ,"mandelbrot.png"]
];
var char_attack=[
["die die dieee","sus" ,"mc donalds" ,"oof" ,"tasks" ,"mcdonalds" ,"memes" ,"mcdonalds" ,"blob","minecraft" ],
["whopper" ,"electricity" ,"change system settings" ,"smile!" ,"mcdonalds" ,"sharp stab" ,"big pop" ,"google" ,"blob","shooting star"],
["kick" ,"stickboi" ,"never gonna give you up","mc donalds" ,"eeee" ,"mcdonalds" ,"memes" ,"yah yeeet" ,"blob","mmmm" ],
["shreksophone" ,"mc donalds" ,"never gonna give you up","scramble" ,"ear blasting ping","electricity","electricity","electricity" ,"blob","raid" ],
["mc donalds" ,"first place" ,"never gonna give you up","first place","minecraft" ,"photo" ,"french" ,"spam spam spam","blob","stream" ],
["CRUNCH" ,"potato" ,"never gonna give you up","mc donalds" ,"minecraft" ,"math" ,"PPAP" ,"math" ,"blob","fractal" ]
];
var char_min=[
[6 ,7 ,7 ,5 ,7 ,5 ,6 ,5 ,6 ,7 ],
[6 ,7 ,5 ,7 ,7 ,6 ,8 ,6 ,7 ,8 ],
[7 ,6 ,7 ,7 ,8 ,6 ,7 ,7 ,8 ,7 ],
[8 ,8 ,8 ,7 ,8 ,8 ,8 ,8 ,9 ,7 ],
[9 ,8 ,8 ,9 ,9 ,8 ,9 ,9 ,8 ,9 ],
[9 ,9 ,10,9 ,10,9 ,10,9 ,10,9 ],
[10,11,11,10,10,11,10,11,12,11],
[11,12,11,11,11,11,12,12,12,10],
[12,13,13,13,12,13,14,13,12,13],
[13,14,13,14,13,12,13,14,15,14],
[14,15,14,13,14,15,14,14,14,15],
[15,14,15,16,15,16,16,16,16,15],
[16,17,16,17,17,16,16,16,17,16],
[17,18,17,17,18,18,18,17,18,19],
[19,19,19,18,17,18,18,19,20,19],
[20,19,20,19,19,18,20,21,20,19],
[20,21,21,20,21,21,22,21,20,21],
[21,21,22,21,22,21,22,22,23,22]
];
var char_max=[
[12,13,12,12,13,12,13,12,12,13],
[13,12,14,13,14,12,13,14,13,12],
[13,13,14,13,14,13,13,14,14,14],
[15,16,15,16,16,15,15,15,16,16],
[16,17,17,16,17,16,16,17,17,17],
[17,17,18,17,18,18,17,18,17,18],
[18,18,19,18,19,18,19,19,19,18],
[19,20,19,20,20,19,20,20,19,18],
[20,21,21,21,22,21,20,21,22,21],
[21,22,23,21,22,22,21,23,22,22],
[22,23,23,22,23,24,23,22,23,22],
[23,24,24,24,23,22,23,24,24,25],
[24,25,25,24,24,24,24,25,25,25],
[25,26,25,25,25,24,25,26,26,25],
[26,27,27,27,26,27,26,27,26,27],
[27,28,27,26,27,28,28,27,27,26],
[28,29,28,27,28,29,27,28,28,29],
[30,30,30,30,30,30,30,30,30,30]
];
var char_hp=[
[90 ,90 ,95 ,85 ,90 ,85 ,90, 90 ,95, 90 ],
[95 ,100,95 ,100,105,100,105,95 ,95, 100],
[100,110,105,105,105,100,105,105,110,105],
[115,120,110,110,115,115,115,115,110,120],
[115,120,115,120,120,115,125,115,125,110],
[125,120,130,125,125,125,125,125,130,130],
[125,130,135,130,125,130,130,125,130,125],
[135,140,140,140,135,130,135,135,140,140],
[140,145,145,145,145,145,140,145,135,140],
[150,145,145,145,140,145,150,150,145,150],
[155,150,155,150,150,150,145,150,155,155],
[150,155,160,160,160,160,155,155,150,160],
[165,160,160,160,165,155,155,160,165,160],
[170,165,170,160,160,165,160,170,165,165],
[170,175,170,165,170,170,175,165,175,170],
[180,180,170,175,175,180,180,170,175,175],
[185,185,180,180,175,180,185,175,175,180],
[190,190,190,190,185,180,185,190,190,190]
];
var char_exists=[
[0,0,0,1,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,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],
[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,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]
];
var char_php;
var char_ehp;
var char_erarity;
var char_enum;
var turn=0;
var ranks=["Common","Uncommon","Rare","Epic","Super rare","Legendary","Sapphire","Amber","Ruby","Emerald","Amethyst","Bronze","Silver","Gold","Diamond","Platinum","Mythical","bob"];
var rankcolor=["#999","#3c3","#33f","#939","#c00","#fd3","#99f","#e51","#e44","#7f7","#e8f","#862","#bbb","#992","#bbf","#405","#foa","#000"];
var img=["num7.png","gold.png","rickastley.png","google.png","cherry.png"];
var good="We're no strangers to love You know the rules and so do I A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give, never gonna give (Give you up) We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you ";
var c_r=[];
var c_g=[];
var c_b=[];
var click=false;
var rebirth=0;
var colors=[
// back text top hint btnstrt btnend
["#002244","#FFFFFF","#3388FF","#77CCFF","#0055CC","#44AAFF"], //blue
["#000000","#FFFFFF","#444444","#333333","#222222","#777777"], //dark
["#CCCCCC","#000000","#FFFFFF","#EEEEEE","#AAAAAA","#555555"], //light
["#004422","#FFFFFF","#338844","#449922","#008833","#006622"], //green
["#AAAA22","#FFFFFF","#CCCC00","#DDBB00","#AA8800","#AAAA00"], //yellow
["#660000","#FFFFFF","#DD0000","#FF7777","#990000","#660000"], //red
["#220044","#FFFFFF","#550099","#9911AA","#9900CC","#550088"] //purple
];
//////////////////////////////////////////////////////////////////////////////////////////////FUNCTIONS
function swaptheme(t){
document.getElementById("body").style.backgroundColor=colors[t][0];
document.getElementById("body").style.color=colors[t][1];
document.getElementById("div").style.backgroundColor=colors[t][2];
document.getElementById("hi_div").style.backgroundColor=colors[t][3];
document.getElementById("btnstart").innerText="button{font-family:monospace;position:absolute;transition-duration:0.4s;border:none;background-color:"+colors[t][4]+";width:100px;height:40px;color:"+colors[3][1]+";border-radius:12px;}";
document.getElementById("btnend").innerText="button:hover{background-color:"+colors[t][5]+";}";
}
function randint(m,n){
if(m>n){
var p=m;
m=n;
n=p;
}
n++;
return Math.floor(Math.random()*(n-m))+m;
};
function complex2(comp){
return [comp[0]**2-comp[1]**2,2*comp[0]*comp[1]];
}
function complexadd(comp1,comp2){
return [comp1[0]+comp2[0],comp1[1]+comp2[1]]
}
function hexp(c) {
var hex=c.toString(16);
if(hex.length==1){
return "0"+hex;
}else{
return hex;
}
}
function rgb2hex(r,g,b) {
return "#"+hexp(r)+hexp(g)+hexp(b);
}
for(var iter=0;iter<256;iter++){
c_r.push((iter*5)%256);
c_g.push((iter*6)%256);
c_b.push((iter*7)%256);
}
function mandel(){
if(zoom>200000000000000){
zoom=200000000000000;
}
if(zoom<0.25){
zoom=0.25;
}
var canvas=document.getElementById("ma_canvas")
var ctx=canvas.getContext("2d");
for(var x=0;x<512;x+=2){
for(var y=0;y<512;y+=2){
var xpos=((x+shiftX)-256)/(128*zoom)+(shiftX*zoom/(128*zoom));
var ypos=(256-(y+shiftY))/(128*zoom)-(shiftY*zoom/(128*zoom));
if(x==256 && y==256){
var centerX=xpos;
var centerY=ypos;
}
var z=[0,0];
var c=[xpos,ypos]
for(var iter=0;iter<256;iter++){
z=complexadd(complex2(z),c);
if(iter==255){
ctx.fillStyle="#000000";
break;
}
if(Math.sqrt(z[0]**2+z[1]**2)>=2){
ctx.fillStyle=rgb2hex(c_r[iter],c_g[iter],c_b[iter]);
break;
}
}
ctx.fillRect(x,y,2,2);
}
}
document.getElementById("ma_x").innerHTML="X:"+(centerX).toString();
document.getElementById("ma_y").innerHTML="Y:"+(centerY).toString();
document.getElementById("ma_z").innerHTML="Zoom:"+(zoom).toString();
}
function save(){
var m_save=m.toString();
var m_savel=m_save.length;
for(var iter=0;iter<7-m_savel;iter++){
m_save="0"+m_save;
}
var g_save=g.toString();
var g_savel=g_save.length;
for(var iter=0;iter<7-g_savel;iter++){
g_save="0"+g_save;
}
var m_hash=0;
var g_hash=0;
for(var iter=0;iter<7;iter++){
m_hash+=parseInt(m_save.charAt(iter));
g_hash+=parseInt(g_save.charAt(iter));
}
m_hash=m_hash.toString();
g_hash=g_hash.toString();
if(parseInt(m_hash)<10){m_hash="0"+m_hash;}
if(parseInt(g_hash)<10){g_hash="0"+g_hash;}
var inv="";
for(var iter1=0;iter1<18;iter1++){
for(var iter2=0;iter2<10;iter2++){
inv+=char_exists[iter1][iter2];
}
}
document.getElementById("sa_code").innerHTML=m_save+g_save+m_hash+g_hash+rebirth+inv;
localStorage.setItem("savecode",document.getElementById("sa_code").innerHTML);
}
function load(code){
var m_save="";
var g_save="";
for(var iter=0;iter<7;iter++){
m_save+=code.charAt(iter);
}
for(var iter=7;iter<14;iter++){
g_save+=code.charAt(iter);
}
var m_hash=code.charAt(14)+code.charAt(15);
var g_hash=code.charAt(16)+code.charAt(17);
var m_ahash=0;
var g_ahash=0;
for(var iter=0;iter<7;iter++){
m_ahash+=parseInt(m_save.charAt(iter));
g_ahash+=parseInt(g_save.charAt(iter));
}
m_ahash=m_ahash.toString();
g_ahash=g_ahash.toString();
if(parseInt(m_ahash)<10){
m_ahash="0"+m_ahash;
}
if(parseInt(g_ahash)<10){
g_ahash="0"+g_ahash;
}
if((m_hash==m_ahash)&&(g_hash==g_ahash)){
document.getElementById("sa_text").innerHTML="Success";
m=parseInt(m_save);
g=parseInt(g_save);
char_exists=[
[0,0,0,1,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,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],
[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,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]
];
if(code.length>=199){
rebirth=code.charAt(18);
for(var iter=19;iter<199;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-19)/10)][(iter-19)%10]=1;
char_rarity=Math.floor((iter-19)/10);
char_num=(iter-19)%10;
}else{
char_exists[Math.floor((iter-19)/10)][(iter-19)%10]=0;
}
}
}else if(code.length<88){
for(var iter=18;iter<78;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=1;
char_rarity=Math.floor((iter-18)/10);
char_num=(iter-18)%10;
}else{
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=0;
}
}
}else if(code.length==68){
for(var iter=18;iter<58;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=1;
char_rarity=Math.floor((iter-18)/10);
char_num=(iter-18)%10;
}else{
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=0;
}
}
for(var iter=58;iter<68;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-18)/10)+1][(iter-18)%10]=1;
char_rarity=Math.floor((iter-18)/10)+1;
char_num=(iter-18)%10;
}else{
char_exists[Math.floor((iter-18)/10)+1][(iter-18)%10]=0;
}
}
}else if(code.length==58){
for(var iter=18;iter<28;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=1;
char_rarity=Math.floor((iter-18)/10);
char_num=(iter-18)%10;
}else{
char_exists[Math.floor((iter-18)/10)][(iter-18)%10]=0;
}
}
for(var iter=28;iter<48;iter++){
if(code.charAt(iter)=="1"){
char_exists[Math.floor((iter-18)/10)+1][(iter-18)%10]=1;
char_rarity=Math.floor((iter-18)/10)+1;
char_num=(iter-18)%10;
}else{
char_exists[Math.floor((iter-18)/10)+1][(iter-18)%10]=0;
}
}
for(var iter=48;iter<58;iter++){
if(code.charAt(iter)=="1"){