gm18.min.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. function rtalt() {
  2. 0 == window.orientation && (-1 == navigator.userAgent.indexOf("Android") || 425 > window.innerHeight && 2 > window.devicePixelRatio) && setTimeout(scrollTo, 100, 0, 1)
  3. }
  4. function lcir(e, t) {
  5. for (var n = 0, r = 0, i = 0, n = 0; 12 > n; n++) r = ldri + n, 12 < r && (r -= 12), ctx.beginPath(), ctx.lineWidth = 2, ctx.strokeStyle = "#FFFFFF", ctx.globalAlpha = r / 10, ctx.moveTo(e + 8 * Math.cos(i), t + 8 * Math.sin(i)), ctx.lineTo(e + 15 * Math.cos(i), t + 15 * Math.sin(i)), ctx.stroke(), i += .5225;
  6. ctx.globalAlpha = 1;
  7. ldri--;
  8. 1 > ldri && (ldri = 12)
  9. }
  10. function lding() {
  11. ctx.clearRect(0, 0, 320, 416);
  12. lcir(160, 246)
  13. }
  14. function srt(e, t) {
  15. e.sort(function(e, n) {
  16. return e[t] - n[t]
  17. });
  18. return e
  19. }
  20. function ralp2() {
  21. lps += .5;
  22. 1 < lps && (lps--, lp())
  23. }
  24. function ralp() {
  25. ralp2();
  26. window.requestAnimationFrame(ralp)
  27. }
  28. function gst() {
  29. ctx.clearRect(0, 0, 320, 416);
  30. gs = 0;
  31. clearInterval(ldlp);
  32. spt(173, 87, 252);
  33. 6 == dvid ? (window.requestAnimationFrame = function() {
  34. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e, t) {
  35. window.setTimeout(e, 1e3 / 60)
  36. }
  37. }(), ralp()) : lp();
  38. setTimeout(scrollTo, 100, 0, 1)
  39. }
  40. function gsts() {
  41. gldt++;
  42. 6 < gldt && setTimeout("gst();", 120)
  43. }
  44. function asd2() {
  45. document.getElementById("bspc").innerHTML = null;
  46. document.getElementById("bspc").style.display = "none"
  47. }
  48. function asd() {
  49. var e = 1 / window.devicePixelRatio,
  50. t = document.createElement("meta"),
  51. e = Math.floor(screen.width / 3.2) / 100 * e;
  52. t.setAttribute("name", "viewport");
  53. t.setAttribute("content", "width = device-width, initial-scale = " + e + ", minimum-scale = " + e + ", maximum-scale = " + e);
  54. document.getElementsByTagName("head")[0].appendChild(t);
  55. setTimeout("asd2", 300)
  56. }
  57. function init() {
  58. var e;
  59. gs = -1;
  60. e = navigator.userAgent;
  61. dvid = 0; - 1 < e.indexOf("Android") && (dvid = 1, 4 <= Math.floor(navigator.userAgent.substr(e.indexOf("Android") + 8, 1)) && (dvid = 2)); - 1 < e.indexOf("iPad") && (dvid = 3); - 1 < e.indexOf("iPhone") && (dvid = 4, 2 <= window.devicePixelRatio && (dvid = 5, 568 == window.screen.height && (dvid = 5)));
  62. aut = ""; - 1 < e.indexOf("SCL21") && (aut = "nty_");
  63. wdpr = 1;
  64. chf2.innerHTML = '<canvas id="gcvs" width="320" height="416"></canvas>';
  65. canvas = document.getElementById("gcvs");
  66. ctx = canvas.getContext("2d"); - 1 == document.URL.indexOf("page") ? canvas.style.backgroundImage = "url(fps/en_reckless_title.jpg)" : canvas.style.backgroundImage = "url(fps/en_reckless_title_nolink.jpg)";
  67. canvas.addEventListener("touchstart", tev1, !1);
  68. canvas.addEventListener("touchend", tev2, !1);
  69. canvas.addEventListener("touchmove", tev3, !1);
  70. canvas.addEventListener("mousedown", tev11, !1);
  71. canvas.addEventListener("mouseup", tev22, !1);
  72. canvas.addEventListener("mousemove", tev33, !1);
  73. flt = mt = tm = lps = gldt = 0;
  74. img1 = new Image;
  75. img1.src = "fps/" + aut + "en_reckless_cs_fps.png";
  76. img1.onload = function() {
  77. gsts()
  78. };
  79. img2 = new Image;
  80. img2.src = "fps/bg_hd1.jpg";
  81. img2.onload = function() {
  82. gsts()
  83. };
  84. img3 = new Image;
  85. img3.src = "fps/bg_hd2.jpg";
  86. img3.onload = function() {
  87. gsts()
  88. };
  89. img4 = new Image;
  90. img4.src = "fps/" + aut + "cs_m16g.png";
  91. img4.onload = function() {
  92. gsts()
  93. };
  94. img5 = new Image;
  95. img5.src = "fps/ctrl.png";
  96. img5.onload = function() {
  97. gsts()
  98. };
  99. img6 = new Image; - 1 == document.URL.indexOf("page") ? img6.src = "fps/en_reckless_title.jpg" : img6.src = "fps/en_reckless_title_nolink.jpg";
  100. img6.onload = function() {
  101. gsts()
  102. };
  103. img7 = new Image; - 1 == document.URL.indexOf("page") ? img7.src = "fps/en_reckless_gameover.jpg" : img7.src = "fps/en_reckless_gameover_nolink.jpg";
  104. img7.onload = function() {
  105. gsts()
  106. };
  107. document.body.buttonMode = null;
  108. document.body.backgroundColor = null;
  109. bp_f = {};
  110. bp_fi = 0;
  111. ix = [0, 0, 0, 0, 0, 700, 780, 860, 0, 100, 200, 300, 400, 500, 600, 0, 100, 200, 300, 400, 500, 600, 0, 70, 140, 210, 280, 350, 420, 490, 560, 630, 0, 70, 140, 210, 280, 350, 420, 490, 560, 630, 0, 70, 140, 210, 280, 350, 420, 490, 560, 630, 0, 70, 140, 210, 850, 860, 870, 880, 887, 894, 700, 850, 700, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 588, 637, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 588, 637, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 901, 906, 911, 916, 921, 850, 700, 850, 895, 940, 0, 100, 200, 300, 400, 500, 600, 0, 100, 200, 300, 400, 500, 600, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 588, 637, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 588, 637, 0, 49, 98, 147, 196, 245, 294, 343, 392, 441, 490, 539, 850, 871, 892, 700, 850, 700, 730, 760, 790, 820, 850, 880, 910, 940, 970, 1002, 0, 0, 150, 700, 733, 766, 799, 832, 865, 898, 931, 964, 700, 733, 750, 763, 778, 793, 808, 823, 838, 853, 868, 883, 898, 700, 750];
  112. iy = [0, 0, 0, 0, 0, 706, 706, 706, 0, 0, 0, 0, 0, 0, 0, 125, 125, 125, 125, 125, 125, 125, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 460, 460, 460, 460, 602, 602, 602, 602, 602, 602, 406, 406, 556, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 602, 602, 602, 602, 602, 634, 786, 556, 556, 556, 740, 740, 740, 740, 740, 740, 740, 865, 865, 865, 865, 865, 865, 865, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 612, 612, 612, 0, 659, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 920, 0, 127, 127, 936, 936, 936, 936, 936, 936, 936, 936, 936, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 1018, 1005];
  113. iw = [0, 0, 0, 0, 0, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 10, 10, 10, 7, 7, 7, 150, 150, 150, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 5, 5, 5, 5, 5, 85, 100, 45, 45, 45, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 21, 21, 21, 320, 146, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 8, 320, 150, 78, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 17, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 320, 3];
  114. ih = [0, 0, 0, 0, 0, 80, 80, 80, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 10, 10, 10, 7, 7, 7, 150, 150, 150, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 6, 6, 6, 6, 6, 25, 100, 46, 46, 46, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 22, 22, 22, 406, 47, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 16, 127, 36, 14, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 35, 13, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 10, 7];
  115. gf = 0;
  116. gix = Array(30);
  117. giy = Array(30);
  118. var t = a = 0;
  119. for (e = 0; 30 > e; e++) gix[e] = a, giy[e] = t, a += 320, 1600 <= a && (a = 0, t += 416, 1248 <= t && (t = 0));
  120. mfx = Array(30);
  121. mfy = Array(30);
  122. for (e = t = a = 0; 40 > e; e++) mfx[e] = a, mfy[e] = t, a += 200, 1e3 <= a && (a = 0, t += 160);
  123. dm_vp = 25;
  124. dm_x = 160;
  125. dm_y = 168;
  126. rknx = [];
  127. for (e = 0; 30 > e; e++) rknx[e] = [];
  128. rkny = [];
  129. for (e = 0; 30 > e; e++) rkny[e] = [];
  130. e = 0;
  131. a = [-18, -27, -16, -27, -14, -25, -12, -23, -9, -19, -7, -19, -6, -19, -5, -19, -4, -19, -2, -19, -1, -19, 0, -19, 1, -19, 2, -19, 4, -19, 5, -19, 6, -19, 7, -19, 9, -19, 12, -23, 14, -24, 17, -27, -18, -25, -16, -25, -14, -23, -12, -22, -10, -20, -7, -17, -6, -17, -5, -17, -4, -17, -2, -17, -1, -17, 0, -17, 1, -17, 2, -17, 4, -17, 5, -17, 6, -17, 7, -17, 10, -20, 12, -22, 14, -23, 17, -25, -18, -23, -16, -23, -14, -21, -12, -20, -10, -19, -8, -17, -6, -16, -5, -16, -4, -16, -2, -16, -1, -16, 0, -16, 1, -16, 2, -16, 4, -16, 5, -16, 6, -16, 8, -17, 10, -19, 12, -20, 14, -21, 17, -23, -18, -22, -16, -22, -14, -20, -12, -19, -10, -18, -9, -17, -6, -15, -5, -15, -4, -15, -2, -15, -1, -15, 0, -15, 1, -15, 3, -15, 4, -15, 5, -15, 6, -15, 9, -17, 10, -18, 12, -19, 14, -20, 17, -22, -18, -20, -16, -20, -14, -18, -12, -17, -10, -16, -9, -16, -6, -14, -5, -14, -4, -14, -2, -14, -1, -14, 0, -14, 1, -14, 2, -14, 4, -14, 5, -14, 7, -14, 9, -15, 10, -16, 12, -17, 14, -18, 17, -20, -18, -18, -16, -18, -14, -17, -12, -16, -10, -15, -9, -14, -7, -13, -5, -12, -4, -12, -2, -12, -1, -12, 0, -12, 1, -12, 3, -12, 4, -12, 5, -12, 7, -13, 9, -14, 10, -15, 12, -16, 14, -17, 17, -18, -18, -17, -16, -17, -14, -15, -12, -14, -10, -13, -9, -13, -7, -12, -5, -11, -4, -11, -2, -11, -1, -11, 0, -11, 1, -11, 3, -11, 4, -11, 5, -11, 7, -12, 9, -13, 10, -13, 12, -14, 14, -15, 17, -17, -18, -15, -16, -15, -14, -14, -12, -13, -10, -12, -9, -11, -7, -11, -5, -10, -4, -10, -2, -10, -1, -10, 0, -10, 1, -10, 3, -10, 4, -10, 5, -10, 7, -11, 9, -11, 10, -12, 12, -13, 14, -14, 17, -15, -18, -14, -16, -14, -14, -12, -12, -11, -10, -10, -9, -10, -7, -9, -5, -9, -4, -8, -2, -9, -1, -9, 0, -9, 1, -9, 3, -9, 4, -8, 5, -8, 7, -9, 9, -10, 10, -10, 12, -11, 14, -12, 17, -14, -18, -12, -16, -12, -14, -11, -12, -10, -10, -9, -9, -8, -7, -8, -5, -7, -4, -7, -2, -7, -1, -7, 0, -7, 1, -7, 3, -7, 4, -7, 5, -7, 7, -8, 9, -8, 10, -9, 12, -9, 14, -10, 17, -12, -18, -10, -16, -10, -14, -9, -12, -8, -10, -8, -9, -7, -7, -6, -5, -6, -4, -6, -2, -6, -1, -6, 0, -6, 1, -6, 3, -6, 4, -6, 5, -6, 7, -6, 9, -7, 10, -7, 12, -8, 14, -9, 17, -10, -18, -9, -16, -9, -14, -7, -12, -7, -10, -6, -9, -6, -7, -5, -5, -5, -4, -4, -2, -4, -1, -5, 0, -5, 1, -5, 3, -4, 4, -4, 5, -4, 7, -5, 9, -6, 10, -6, 12, -6, 14, -7, 17, -9, -18, -7, -16, -7, -14, -6, -12, -5, -10, -5, -9, -4, -7, -4, -5, -3, -4, -3, -2, -3, -1, -4, 0, -4, 1, -4, 3, -3, 4, -3, 5, -3, 7, -4, 9, -4, 10, -4, 12, -5, 14, -6, 17, -7, -18, -5, -16, -5, -14, -4, -12, -4, -10, -3, -9, -3, -7, -2, -5, -2, -4, -2, -2, -2, -1, -2, 0, -2, 1, -2, 3, -2, 4, -2, 5, -2, 7, -2, 9, -3, 10, -3, 12, -4, 14, -4, 17, -5, -18, -4, -16, -4, -14, -3, -12, -2, -10, -2, -9, -1, -7, -1, -5, -1, -4, -1, -3, -1, -1, -1, 0, -1, 1, -1, 3, -1, 4, -1, 5, -1, 7, -1, 9, -1, 10, -2, 12, -2, 14, -3, 17, -4, -18, -2, -16, -2, -14, -1, -12, -1, -10, 0, -9, 0, -7, 0, -6, 0, -4, 0, -3, 0, -1, 0, 0, 0, 2, 0, 3, 0, 5, 0, 6, 0, 7, 0, 9, 0, 10, 0, 12, -1, 14, -1, 17, -2];
  132. for (t = 0; 20 > t; t++)
  133. for (var n = 0; 22 > n; n++) rknx[n][t] = a[e], rkny[n][t] = a[e + 1], e += 2;
  134. mshx = [6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 45, 50, 54, 56, 61, 66, 69, 73, 76, 80, 84, 88, 91, 95, 99, 102, 106, 109, 114, 117, 121, 125, 129, 133, 137, 140, 142, 146, 151, 153];
  135. mshy = [191, 192, 191, 192, 193, 193, 192, 192, 192, 192, 192, 193, 193, 192, 193, 193, 194, 194, 193, 193, 193, 194, 194, 195, 194, 193, 195, 194, 196, 193, 197, 195, 196, 196, 196, 196, 196, 197, 196, 197];
  136. msanm = [62, 0, 0, 63, 0, 0, 64, 0, 0];
  137. rad = Math.PI / 180;
  138. pl = 2.9;
  139. idsp1 = .34;
  140. idsp2 = -.34;
  141. hpb = [0, 0, 0, 24, 0, 0, 0, 32, 0, 24, 0, 32];
  142. scrux = [59, 91, 123, 165, 197, 229];
  143. askb = 0;
  144. e = document.URL.substr(0, 19);
  145. t = a = 0;
  146. for (a = 7; 19 > a; a++) t += e.charCodeAt(a);
  147. askb = 1;
  148. aini()
  149. }
  150. function aini() {
  151. wbj = wby = idsp = idsm = ids = msanf = dldxa = 0;
  152. bp_f = {};
  153. bp_fi = 0;
  154. tcx = 160;
  155. tcy = 300;
  156. shst = rshc = 0;
  157. tgy = tgx = 160;
  158. frct = 0;
  159. chdy = chdx = ftgy = ftgx = 160;
  160. rlda = 0;
  161. tx = "";
  162. var e = [1, 1, 1, 2, 2, 2, 3, 4, 5, 6, 7],
  163. t = 0,
  164. n = 0,
  165. r = 0;
  166. for (i = 0; 60 > i; i++) t = Math.floor(11 * Math.random()), n = Math.floor(11 * Math.random()), r = e[t], e[t] = e[n], e[n] = r;
  167. for (i = 0; 11 > i; i++) switch (e[i]) {
  168. case 1:
  169. bp_f["c" + bp_fi] = {
  170. dx: 0,
  171. dy: 0,
  172. x: -50,
  173. y: -60 * Math.random() - 25,
  174. z: 15 * (i + 1),
  175. sx: 0,
  176. sy: 0,
  177. sz: 3,
  178. ex: 0,
  179. ey: 0,
  180. es: 0,
  181. lz: 12,
  182. wt: -86,
  183. ap: 0,
  184. hp: 20,
  185. dm: .5,
  186. f: 65,
  187. t: 3,
  188. l: 1
  189. };
  190. bp_fi++;
  191. break;
  192. case 2:
  193. bp_f["c" + bp_fi] = {
  194. dx: 0,
  195. dy: 0,
  196. x: 50,
  197. y: -60 * Math.random() - 25,
  198. z: 15 * (i + 1),
  199. sx: 0,
  200. sy: 0,
  201. sz: 3,
  202. ex: 0,
  203. ey: 0,
  204. es: 0,
  205. lz: 12,
  206. wt: -86,
  207. ap: 0,
  208. hp: 20,
  209. dm: .5,
  210. f: 129,
  211. t: 9,
  212. l: 1
  213. };
  214. bp_fi++;
  215. break;
  216. default:
  217. bp_f["c" + bp_fi] = {
  218. dx: 0,
  219. dy: 0,
  220. x: 20 * (e[i] - 3) - 41,
  221. y: 0,
  222. z: 15 * (i + 1),
  223. sx: 0,
  224. sy: 0,
  225. sz: 3,
  226. ex: 0,
  227. lz: -12,
  228. ey: 0,
  229. es: 0,
  230. wt: -40,
  231. ap: 0,
  232. hp: 20,
  233. dm: .5,
  234. f: 129,
  235. t: 7,
  236. l: 1
  237. }, bp_fi++
  238. }
  239. shy = shx = etg = -1;
  240. onsht = 0;
  241. mfa = mf = 19;
  242. mqy = 0;
  243. mshi = 1;
  244. tmny = mny = 70;
  245. uia = 1;
  246. flock = -1;
  247. msi = msy = msx = dmtm = 0;
  248. mst = mss = 1;
  249. blk = 0;
  250. ahp = hp = 78;
  251. gtm = 61;
  252. ptm = 0;
  253. plstm = 500;
  254. govgm = govy = tscr = scr = 0
  255. }
  256. function cir(e, t, n) {
  257. var r = -90 * rad;
  258. n -= 90 * rad;
  259. ctx.beginPath();
  260. ctx.arc(e, t, 6, r, n, !1);
  261. ctx.strokeStyle = "#ffe100";
  262. ctx.stroke()
  263. }
  264. function spt(e, t, n) {
  265. var r = iw[e],
  266. i = ih[e];
  267. ctx.drawImage(img1, ix[e], iy[e], r, i, t, n, r, i)
  268. }
  269. function sptl(e, t, n, r) {
  270. var i = iw[e],
  271. s = ih[e],
  272. o = i * r;
  273. r *= s;
  274. ctx.drawImage(img1, ix[e], iy[e], i, s, t - o / 2, n - r / 2, o, r)
  275. }
  276. function chg3d(e, t, n) {
  277. n = dm_vp / (dm_vp + n);
  278. return {
  279. x: e * n,
  280. y: t * n,
  281. sc: 100 * n,
  282. sdy: 1.5 * n
  283. }
  284. }
  285. function gondsp() {
  286. ctx.drawImage(img7, 0, 0, 320, 416, 0, 0, 320, 416);
  287. var e = String(tscr),
  288. t = e.length - 1,
  289. n;
  290. for (scx = 0; scx <= t; scx++) n = Math.floor(e.substr(scx, 1)), spt(174 + n, scrux[5 - t + scx], 206);
  291. 2 < t && spt(184, 155, 245)
  292. }
  293. function tev11(e) {
  294. mousePos = {
  295. x: e.layerX,
  296. y: e.layerY
  297. };
  298. Press(mousePos);
  299. e.preventDefault()
  300. }
  301. function tev1(e) {
  302. mousePos = {
  303. x: e.touches[0].pageX,
  304. y: e.touches[0].pageY
  305. };
  306. Press(mousePos);
  307. e.preventDefault()
  308. }
  309. function Press(e) {
  310. var t = e.x / wdpr;
  311. e = e.y / wdpr;
  312. switch (gs) {
  313. case 0:
  314. 175 < t && 365 < e ? Play68.goHome() : 60 > t && 350 < e ? setTimeout(function() {
  315. // Play68.shareFriend();
  316. }, 500) : gs = 1;
  317. break;
  318. case 3:
  319. 50 < Math.abs(t - 160) ? (0 == ids && (onsht = 0), 350 < e ? (ids = -1, idsm = idsp2) : (ids = 1, idsm = idsp1)) : (2 > wby && (wby = 2), 8 < wby && (wby = 8), shst = 1, flock = etg);
  320. break;
  321. case 5:
  322. 175 < t && 365 < e ? Play68.goHome() : 35 < t && 280 < e && t < 155 && e < 335 ? (tscr = 0, blk = 0, gs = 6) : 168 < t && 280 < e && t < 286 && e < 335 && setTimeout(function() {
  323. // Play68.shareFriend()
  324. }, 500)
  325. }
  326. }
  327. function gtckdv(e) {
  328. var t = null,
  329. n = e + "=";
  330. e = document.cookie;
  331. var r = e.indexOf(n); - 1 != r && (t = r + n.length, n = e.indexOf(";", t), -1 == n && (n = e.length), t = decodeURIComponent(e.substring(t, n)));
  332. return t
  333. }
  334. function tev22(e) {
  335. mousePos = {
  336. x: e.layerX,
  337. y: e.layerY
  338. };
  339. Release(mousePos)
  340. }
  341. function tev2(e) {
  342. mousePos = {
  343. x: e.changedTouches[0].pageX,
  344. y: e.changedTouches[0].pageY
  345. };
  346. Release(mousePos);
  347. e.preventDefault()
  348. }
  349. function Release(e) {
  350. 3 == gs && (shst = idsm = ids = 0, flock = -1, mqy = 0, ctx.restore())
  351. }
  352. function tev33(e) {
  353. mousePos = {
  354. x: e.layerX,
  355. y: e.layerY
  356. };
  357. Move(mousePos)
  358. }
  359. function tev3(e) {
  360. mousePos = {
  361. x: e.touches[0].pageX,
  362. y: e.touches[0].pageY
  363. };
  364. Move(mousePos);
  365. e.preventDefault()
  366. }
  367. function Move(e) {
  368. var t = e.x / wdpr;
  369. e = e.y / wdpr;
  370. 3 == gs && 1 == shst && (tcx = t, tcy = e, 416 < tcy && (tcy = 416))
  371. }
  372. function lp() {
  373. 6 != dvid && setTimeout("lp()", 1e3 / 30);
  374. var e, t;
  375. switch (gs) {
  376. case 1:
  377. ctx.drawImage(img6, 0, 0, 320, 416, 0, 0, 320, 416);
  378. ctx.globalAlpha = blk;
  379. ctx.fillStyle = "#000";
  380. ctx.fillRect(0, 0, 320, 416);
  381. ctx.globalAlpha = 1;
  382. blk += .05;
  383. 1 < blk && (blk = 1, canvas.style.backgroundImage = "none", gs = 2);
  384. break;
  385. case 2:
  386. case 3:
  387. case 4:
  388. var n = 0;.1 < msi ? (1 == mss && (msx = Math.random() * msi * 2 - msi, msy = Math.random() * msi * 2 - msi, n = 1, msi = 1 == mst ? msi - 1 : msi - 2, ctx.clearRect(0, 0, 320, 416), ctx.save(), ctx.translate(msx | 0, msy | 0)), mss *= mst) : msi = msy = msx = 0; - 1 != etg && (1 == ids && -12 > etg.z || -1 == ids && 30 < etg.z) && (idsp = idsm = ids = 0);
  389. t = gf | 0;
  390. e = giy[t] + wby - mqy | 0;
  391. 0 > e && (e = 0);
  392. 1248 < e && (e = 1248);
  393. 15 > t ? ctx.drawImage(img2, gix[t], e, 320, 406, 0, 0, 320, 406) : ctx.drawImage(img3, gix[t], e, 320, 406, 0, 0, 320, 406);
  394. ctx.save();
  395. ctx.translate(0, -wby + mqy);
  396. 0 != ids ? (wby += wbj, 0 > wby && (wby = 0, wbj = 1), 10 < wby && (wby = 10, wbj = -1), idsp = ids) : idsp = 0;
  397. gf += idsp;
  398. 0 > gf && (gf = 29);
  399. 29 < gf && (gf = 0);
  400. 0 < rshc && rshc--;
  401. if (1 == shst && 0 == tmny && -1 != etg && 4 != gs && 1 == askb) {
  402. mshi *= -1;
  403. mqy = 1 == mshi ? 2 : 0;
  404. 0 != msanm[msanf] && spt(msanm[msanf], mshx[mfa], mshy[mfa] + mqy);
  405. msanf++;
  406. 8 < msanf && (msanf = 0);
  407. if (0 == rshc && 0 == tmny) {
  408. t = 0;
  409. e = 1;
  410. 160 < tgx && (e = -1);
  411. if (7 == etg.t || 11 == etg.t) t = -16, e = .5 < Math.random() ? 1 : -1;
  412. bp_f["c" + bp_fi] = {
  413. x: etg.x,
  414. y: etg.y + t,
  415. z: etg.z - 1,
  416. sx: .5 * Math.random() - .25,
  417. sy: -.25 * Math.random() - .1,
  418. f: 56 + Math.floor(3 * Math.random()),
  419. a: 1,
  420. t: 4,
  421. l: 1
  422. };
  423. bp_fi++;
  424. bp_f["c" + bp_fi] = {
  425. x: etg.x,
  426. y: etg.y + t,
  427. z: etg.z - 1,
  428. sx: 2 * Math.random() * e,
  429. sy: -2 * Math.random() - .1,
  430. f: 62,
  431. a: 2,
  432. t: 5,
  433. l: 1
  434. };
  435. bp_fi++;
  436. bp_f["c" + bp_fi] = {
  437. x: etg.x,
  438. y: etg.y + t,
  439. z: etg.z - 1,
  440. sx: 2 * Math.random() * e,
  441. sy: -2 * Math.random() - .1,
  442. f: 62,
  443. a: 2,
  444. t: 5,
  445. l: 1
  446. };
  447. bp_fi++;
  448. rshc = 5
  449. }
  450. etg.hp -= etg.dm;
  451. if (.1 > etg.hp) {
  452. t = 0;
  453. if (7 == etg.t || 11 == etg.t) t = -16, Math.random();
  454. for (e = 0; 15 > e; e++) bp_f["c" + bp_fi] = {
  455. x: etg.x,
  456. y: etg.y + t,
  457. z: etg.z - 1,
  458. sx: .9 * Math.random() - .45,
  459. sy: -.8 * Math.random(),
  460. ssy: .02 * Math.random() + .03,
  461. f: 169 + Math.floor(3 * Math.random()),
  462. a: 1,
  463. t: 10,
  464. l: 1
  465. }, bp_fi++;
  466. t = plstm / 23 | 0;
  467. 9 < t && (t = 9);
  468. 1 > t && (t = 1);
  469. bp_f["c" + bp_fi] = {
  470. x: tgx - 10,
  471. y: tgy - 30,
  472. z: -900,
  473. nm: t,
  474. a: 3,
  475. t: 12,
  476. l: 1
  477. };
  478. bp_fi++;
  479. 11 == etg.t && (etg.t = 7);
  480. 7 == etg.t && 100 < scr && (etg.lz = -12 * Math.random());
  481. etg.hp = 20;
  482. etg.ap = 0;
  483. etg.z += 100;
  484. etg.wt = -6;
  485. etg = -1;
  486. scr += t;
  487. ptm = t;
  488. plstm = 230
  489. }
  490. }
  491. 0 < plstm && plstm--;
  492. e = [];
  493. if (0 < bp_fi) {
  494. var r = 0,
  495. i;
  496. for (i in bp_f) t = bp_f[i], 1 == t.l && (e.push([t, -t.z]), r++);
  497. 0 == r && (bp_f = {}, bp_fi = 0)
  498. }
  499. srt(e, 1);
  500. var s;
  501. i = 0;
  502. var o;
  503. for (o = 0; o < e.length; o++)
  504. if (t = e[o][0], 1 == t.l) {
  505. switch (t.t) {
  506. case 11:
  507. var u = chg3d(t.x, t.y - 10, t.z),
  508. a = u.sc / 500,
  509. f = 34 * a,
  510. l = f / 2,
  511. f = u.x,
  512. c = u.y + u.sc / 3.7,
  513. f = f + dm_x | 0,
  514. l = c - l + dm_y | 0;
  515. sptl(t.f | 0, f, l, 2 * a);
  516. t.f += 1;
  517. 55 < t.f && (t.f = 55);
  518. t.wt += .1;
  519. 0 < t.wt && (i++, cir(f, l - 16 * u.sc / 200, t.wt), 6.3 < t.wt && (t.wt = -10 - Math.floor(300 - Math.random() * scr), 300 > scr && 0 < i && (t.wt -= Math.floor(10 * Math.random())), -10 > t.wt && (t.wt = -10), bp_f["c" + bp_fi] = {
  520. x: t.x,
  521. y: t.y - 20,
  522. z: t.z,
  523. sx: -t.x / 25,
  524. sy: (-100 - t.y) / 40 + 3,
  525. sz: -1.6,
  526. ex: 0,
  527. ey: 0,
  528. es: 0,
  529. sc: 0,
  530. f: 112,
  531. t: 1,
  532. l: 1
  533. }, bp_fi++));
  534. t.dx = f - 2;
  535. t.dy = l - 4;
  536. s = t;
  537. t.z += -idsm; - 25 > t.z && (t.y = 100 * -Math.random(), t.z += 300);
  538. break;
  539. case 7:
  540. u = chg3d(t.x, t.y - 10, t.z);
  541. a = u.sc / 500;
  542. f = 34 * a;
  543. l = f / 2;
  544. f = u.x;
  545. c = u.y + u.sc / 3.7;
  546. f = f + dm_x | 0;
  547. l = c - l + dm_y | 0;
  548. sptl(t.f | 0, f, l, 2 * a);
  549. t.f += 1;
  550. 45 < t.f && (t.f = 22);
  551. t.dx = f - 2;
  552. t.dy = l - 4;
  553. s = t;
  554. t.z += -.1 - idsm;
  555. t.z < t.lz && (t.t = 11, t.f = 46); - 25 > t.z && (t.y = 100 * -Math.random(), t.z += 300);
  556. break;
  557. case 3:
  558. t.z += -idsm;
  559. if (1 == t.ap) u = chg3d(t.x, t.y, t.z), a = u.sc / 500, f = 34 * a, l = f / 2, f = u.x, c = u.y + u.sc / 3.7, f = f + dm_x | 0, l = c - l + dm_y | 0, sptl(t.f, f, l, 2 * a), t.f++, 104 < t.f && (t.f = 104), t.wt += .1, 0 < t.wt && (i++, cir(f, l, t.wt), 6.3 < t.wt && (t.wt = -13, 300 > scr && 0 < i && (t.wt -= Math.floor(10 * Math.random())), s = -t.x / 25, a = (-100 - t.y) / 40 + 1, 80 < Math.abs(f - 160) && (s *= 5, a += Math.floor(18 * Math.random())), 10 < t.z && (a = -2, s /= 2), bp_f["c" + bp_fi] = {
  560. x: t.x,
  561. y: t.y,
  562. z: t.z,
  563. sx: s,
  564. sy: a,
  565. sz: -.8,
  566. ex: 0,
  567. ey: 0,
  568. es: 0,
  569. sc: 0,
  570. f: 112,
  571. t: 1,
  572. l: 1
  573. }, bp_fi++)), t.dx = f - 3, t.dy = l, s = t;
  574. else if (t.z < t.lz)
  575. for (t.ap = 1, u = 0; 15 > u; u++) bp_f["c" + bp_fi] = {
  576. x: t.x,
  577. y: t.y - 8,
  578. z: t.z - 1,
  579. sx: 2 * Math.random(),
  580. sy: -2 * Math.random() - .1,
  581. f: 105 + Math.floor(4 * Math.random()),
  582. a: 2,
  583. t: 8,
  584. l: 1
  585. }, bp_fi++; - 20 > t.z && (t.y = 100 * -Math.random(), t.hp = 20, t.ap = 0, t.z += 500);
  586. break;
  587. case 9:
  588. t.z += -idsm;
  589. if (1 == t.ap) u = chg3d(t.x, t.y, t.z), a = u.sc / 500, f = 34 * a, l = f / 2, f = u.x, c = u.y + u.sc / 3.7, f = f + dm_x | 0, l = c - l + dm_y | 0, sptl(t.f, f, l, 2 * a), t.f++, 168 < t.f && (t.f = 168), t.wt += .1, 0 < t.wt && (i++, cir(f, l, t.wt), 6.3 < t.wt && (t.wt = -13, 300 > scr && 0 < i && (t.wt -= Math.floor(10 * Math.random())), s = -t.x / 25, a = (-100 - t.y) / 40 + 1, 80 < Math.abs(f - 160) && (s *= 5, a = Math.floor(18 * Math.random())), 10 < t.z && (a = -2, s /= 2), bp_f["c" + bp_fi] = {
  590. x: t.x,
  591. y: t.y,
  592. z: t.z,
  593. sx: s,
  594. sy: a,
  595. sz: -.8,
  596. ex: 0,
  597. ey: 0,
  598. es: 0,
  599. sc: 0,
  600. f: 112,
  601. t: 1,
  602. l: 1
  603. }, bp_fi++)), t.dx = f + 1, t.dy = l, s = t;
  604. else if (t.z < t.lz)
  605. for (t.ap = 1, u = 0; 15 > u; u++) bp_f["c" + bp_fi] = {
  606. x: t.x,
  607. y: t.y - 8,
  608. z: t.z - 1,
  609. sx: -2 * Math.random(),
  610. sy: -2 * Math.random() - .1,
  611. f: 105 + Math.floor(4 * Math.random()),
  612. a: 2,
  613. t: 8,
  614. l: 1
  615. }, bp_fi++; - 20 > t.z && (t.y = 100 * -Math.random(), t.hp = 20, t.ap = 0, t.z += 500);
  616. break;
  617. case 1:
  618. u = chg3d(t.x, t.y, t.z);
  619. a = u.sc / 500;
  620. f = 34 * a;
  621. l = f / 2;
  622. f = u.x;
  623. c = u.y + u.sc / 3.7;
  624. f = f + dm_x | 0;
  625. l = c - l + dm_y | 0;
  626. sptl(t.f, f, l, a);
  627. t.f++;
  628. 114 < t.f && (t.f = 112);
  629. t.sy += .1;
  630. t.x += t.sx;
  631. t.y += t.sy;
  632. t.z += t.sz - idsm; - 30 < t.y && -20 > t.z && (t.z = -20, t.y = .1, msi = 18, dmtm = mst = mss = 1, hp -= 16, 1 > hp && (hp = 0, gs = 4, shst = idsm = ids = 0, flock = -1, tscr = 100 * scr + 5 * gtm | 0));
  633. if (0 < t.y) {
  634. chdx = f;
  635. chdy = l - 2;
  636. t.ex = f;
  637. t.ey = l - 2;
  638. t.es = 3 * a;
  639. t.f = 8;
  640. t.t = 2;
  641. t.sx = 0;
  642. for (u = t.sy = 0; 5 > u; u++) bp_f["c" + bp_fi] = {
  643. x: t.x,
  644. y: t.y,
  645. z: t.z - 1,
  646. sx: 10 * Math.random() - 5,
  647. sy: -5 * Math.random(),
  648. sz: 0,
  649. f: 115,
  650. t: 2,
  651. a: .9,
  652. l: 1
  653. }, bp_fi++;
  654. bp_f["c" + bp_fi] = {
  655. x: t.x,
  656. y: t.y,
  657. z: t.z - 1,
  658. sx: 0,
  659. sy: -5,
  660. sz: 0,
  661. f: 115,
  662. t: 2,
  663. a: .9,
  664. l: 1
  665. };
  666. bp_fi++
  667. }
  668. bp_f["c" + bp_fi] = {
  669. x: 0,
  670. y: 0,
  671. z: t.z + 2,
  672. sx: 0,
  673. sy: 0,
  674. sz: 2,
  675. ex: f,
  676. ey: l,
  677. es: 1.2 * a,
  678. sc: 0,
  679. f: Math.floor(3 * Math.random()) + 5,
  680. t: 6,
  681. a: .9,
  682. l: 1
  683. };
  684. bp_fi++;
  685. t.sc = 1;
  686. if (180 < t.z || .04 > a) chdx = f, chdy = l - 2, t.l = 0, delete t;
  687. break;
  688. case 2:
  689. u = chg3d(t.x, t.y, t.z);
  690. a = u.sc / 500;
  691. f = 34 * a;
  692. l = f / 2;
  693. f = u.x;
  694. c = u.y + u.sc / 3.7;
  695. f = f + dm_x | 0;
  696. l = c - l + dm_y | 0;
  697. ctx.globalCompositeOperation = "lighter";
  698. sptl(t.f | 0, f, l, 4 * a);
  699. ctx.globalCompositeOperation = "source-over";
  700. t.z += -idsm;
  701. t.x += t.sx;
  702. t.y += t.sy;
  703. t.sx *= .93;
  704. t.sy *= .93;
  705. t.f += .5;
  706. if (128 < t.f || 22 == (t.f | 0)) t.l = 0, delete t;
  707. break;
  708. case 4:
  709. u = chg3d(t.x, t.y + 25, t.z + .25);
  710. a = u.sc / 60;
  711. f = 34 * a;
  712. l = f / 2;
  713. f = u.x;
  714. c = u.y + u.sc / 3.7;
  715. f = f + dm_x | 0;
  716. l = c - l + dm_y | 0;
  717. t.x += t.sx;
  718. t.y += t.sy;
  719. t.a -= .02;
  720. t.z += -idsm;
  721. 0 > t.a ? (t.l = 0, delete t) : (ctx.globalAlpha = t.a, sptl(t.f, f, l, a), ctx.globalAlpha = 1);
  722. break;
  723. case 5:
  724. u = chg3d(t.x, t.y + 8, t.z + .25);
  725. a = u.sc / 160;
  726. f = 34 * a;
  727. l = f / 2;
  728. f = u.x;
  729. c = u.y + u.sc / 3.7;
  730. f = f + dm_x | 0;
  731. l = c - l + dm_y | 0;
  732. t.x += t.sx;
  733. t.y += t.sy;
  734. t.sy += .2;
  735. t.a -= .07;
  736. t.f -= .4;
  737. 59 > t.f && (t.f = 59);
  738. u = t.a;
  739. 1 < u && (u = 1);
  740. 0 > t.a ? (t.l = 0, delete t) : (ctx.globalAlpha = u, ctx.globalCompositeOperation = "lighter", sptl(t.f | 0, f, l, a * u), ctx.globalCompositeOperation = "source-over", ctx.globalAlpha = 1);
  741. break;
  742. case 6:
  743. ctx.globalAlpha = t.a;
  744. sptl(t.f, t.ex | 0, t.ey | 0, t.es);
  745. ctx.globalAlpha = 1;
  746. t.a -= .04;
  747. t.es *= .94;
  748. t.z += -idsm;.05 > t.es && (t.es = .05);.1 > t.a && (t.l = 0, delete t);
  749. break;
  750. case 8:
  751. u = chg3d(t.x, t.y + 8, t.z + .25);
  752. a = u.sc / 160;
  753. f = 34 * a;
  754. l = f / 2;
  755. f = u.x;
  756. c = u.y + u.sc / 3.7;
  757. f = f + dm_x | 0;
  758. l = c - l + dm_y | 0;
  759. t.x += t.sx;
  760. t.y += t.sy;
  761. 0 < t.y && (t.y = 0, t.sy = -t.sy / (1.5 + 2 * Math.random()), t.sx *= .7);
  762. t.sy += .2;
  763. t.a -= .04;
  764. u = t.a;
  765. 1 < u && (u = 1);
  766. 0 > u ? (t.l = 0, delete t) : (ctx.globalAlpha = u, sptl(t.f | 0, f, l, 1.2 * a), ctx.globalAlpha = 1);
  767. t.z -= idsm;
  768. break;
  769. case 12:
  770. t.a -= .1;
  771. t.y--;
  772. u = t.a;
  773. 1 < u && (u = 1);
  774. 0 > t.a ? (t.l = 0, delete t) : (ctx.globalAlpha = u, spt(199, t.x, t.y), spt(200 + t.nm, t.x + 10, t.y - 4), ctx.globalAlpha = 1);
  775. break;
  776. case 10:
  777. u = chg3d(t.x, t.y + 25, t.z + .25), a = u.sc / 60, f = 34 * a, l = f / 2, f = u.x, c = u.y + u.sc / 3.7, f = f + dm_x | 0, l = c - l + dm_y | 0, t.x += t.sx, t.y += t.sy, t.sx *= .9, t.sy += t.ssy, t.a -= .03, t.z += -idsm, 0 > t.a ? (t.l = 0, delete t) : (ctx.globalAlpha = t.a, ctx.globalCompositeOperation = "lighter", sptl(t.f, f, l, .4 * a), ctx.globalCompositeOperation = "source-over", ctx.globalAlpha = 1)
  778. }
  779. r++
  780. } - 1 == flock ? s && (etg = s, tgx = etg.dx, tgy = etg.dy) : (tgx = flock.dx, tgy = flock.dy); - 1 != etg && (-2 > etg.z ? 0 == onsht && (ftgx = tgx, ftgy = tgy, tmny = 0) : (ftgx = 160, tmny = 70));
  781. 0 == shst && 0 == onsht && 0 == tmny && 4 != gs ? (rlda += .075, 1 < rlda && (rlda = 1), ctx.globalAlpha = rlda, spt(111, (ftgx | 0) - 50, (ftgy | 0) - 50), ctx.globalAlpha = 1) : rlda = 0;
  782. r = (ftgx - 20) / 8;
  783. 0 > r && (r = 0);
  784. 39 < r && (r = 39);
  785. mf > r && mf--;
  786. mf < r && mf++;
  787. mfa = mf | 0;
  788. ctx.restore();
  789. 0 < dmtm ? (ctx.globalAlpha = dmtm, spt(172, 0, 0), ctx.globalAlpha = 1, dmtm -= .02, .01 > dmtm && (dmtm = 0), ahp > hp && ahp--, ctx.drawImage(img5, 0, 127, 150, 36, 85, 0, 150, 36), ctx.drawImage(img5, 150, 127, 78, 14, 128, 10, ahp, 14)) : 4 != gs && (s = gtm | 0, r = s / 60 | 0, t = s - 60 * r, s = t / 10 | 0, t -= 10 * s, spt(188 + r, 112, 7), spt(188 + s, 149, 7), spt(188 + t, 175, 7), spt(198, 139, 7));
  790. 0 == ptm ? (gtm -= .05, 150 < scr && 30 < gtm && (gtm -= .05), 0 > gtm && (hp = gtm = 0, gs = 4, shst = idsm = ids = 0, flock = -1, tscr = 100 * scr + 5 * gtm | 0)) : (gtm += .25, ptm -= .25, 180 < gtm && (gtm = 180));
  791. ctx.drawImage(img4, mfx[mfa], mfy[mfa], 200, 160, 60, 246 + mqy + (mny | 0) + govy, 200, 160);
  792. mny += (tmny - mny) / 5;
  793. 0 == shst ? (uia += .2, 1 < uia && (uia = 1)) : (uia -= .2, 0 > uia && (uia = 0), 0 == tmny && -1 != etg && (ctx.fillStyle = "#000", ctx.fillRect(tgx - 10, tgy - hpb[etg.t], 20, 3), ctx.fillStyle = "#d33c38", ctx.fillRect(tgx - 10, tgy - hpb[etg.t], etg.hp, 3)));
  794. 0 < uia && 0 == dmtm && 4 != gs && (ctx.globalAlpha = uia, ctx.drawImage(img5, 0, 0, 320, 127, 0, 286, 320, 127), 0 == tmny && spt(110, 120, 352), ctx.globalAlpha = 1);
  795. 0 == wbj && (wbj = 1);
  796. 1 == n && (ctx.clearRect(0, -10, 320, 10), ctx.clearRect(-10, 0, 10, 406), ctx.clearRect(320, 0, 10, 406), ctx.clearRect(0, 406, 320, 10), ctx.restore());
  797. spt(210, 0, 406);
  798. etg.z ? (n = 43 + 6.4 * (etg.z + 12), 308 < n && (n = 308), 43 > n && (n = 43), dldxa = -1 == dldxa ? n : dldxa + (n - dldxa) / 10, spt(211, dldxa | 0, 406)) : dldxa = -1;
  799. 0 < blk && (ctx.globalAlpha = blk, ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1, blk -= .05, 0 > blk && (blk = 0, gs = 3));
  800. 4 == gs && (govy += 6, 161 < govy && (govy = 161), govgm += .03, 1 < govgm && (govgm = 1, gs = 5),/*play68_submitScore(tscr),*/ Play68.setRankingScoreDesc(tscr), ctx.globalAlpha = govgm, gondsp(), ctx.globalAlpha = 1);
  801. break;
  802. case 5:
  803. gondsp();
  804. break;
  805. case 6:
  806. gondsp(), ctx.globalAlpha = blk, ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1, blk += .05, 1 < blk && (aini(), blk = 1, gs = 2)
  807. }
  808. tm = Math.floor(+(new Date) / 1e3);
  809. tm != mt && 1 < tm && (flt = 0);
  810. flt++;
  811. mt = tm
  812. }
  813. onload = function() {
  814. ldri = 0;
  815. ldlp = setInterval("lding();", 50);
  816. init()
  817. };