123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844 |
- function rtalt() {
- 0 == window.orientation && (-1 == navigator.userAgent.indexOf("Android") || 425 > window.innerHeight && 2 > window.devicePixelRatio) && setTimeout(scrollTo, 100, 0, 1)
- }
- function lcir(e, t) {
- 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;
- ctx.globalAlpha = 1;
- ldri--;
- 1 > ldri && (ldri = 12)
- }
- function lding() {
- ctx.clearRect(0, 0, 320, 416);
- lcir(160, 246)
- }
- function srt(e, t) {
- e.sort(function(e, n) {
- return e[t] - n[t]
- });
- return e
- }
- function ralp2() {
- lps += .5;
- 1 < lps && (lps--, lp())
- }
- function ralp() {
- ralp2();
- window.requestAnimationFrame(ralp)
- }
- function gst() {
- ctx.clearRect(0, 0, 320, 416);
- gs = 0;
- clearInterval(ldlp);
- spt(173, 87, 252);
- 6 == dvid ? (window.requestAnimationFrame = function() {
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e, t) {
- window.setTimeout(e, 1e3 / 60)
- }
- }(), ralp()) : lp();
- setTimeout(scrollTo, 100, 0, 1)
- }
- function gsts() {
- gldt++;
- 6 < gldt && setTimeout("gst();", 120)
- }
- function asd2() {
- document.getElementById("bspc").innerHTML = null;
- document.getElementById("bspc").style.display = "none"
- }
- function asd() {
- var e = 1 / window.devicePixelRatio,
- t = document.createElement("meta"),
- e = Math.floor(screen.width / 3.2) / 100 * e;
- t.setAttribute("name", "viewport");
- t.setAttribute("content", "width = device-width, initial-scale = " + e + ", minimum-scale = " + e + ", maximum-scale = " + e);
- document.getElementsByTagName("head")[0].appendChild(t);
- setTimeout("asd2", 300)
- }
- function init() {
- var e;
- gs = -1;
- e = navigator.userAgent;
- 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)));
- aut = ""; - 1 < e.indexOf("SCL21") && (aut = "nty_");
- wdpr = 1;
- chf2.innerHTML = '<canvas id="gcvs" width="320" height="416"></canvas>';
- canvas = document.getElementById("gcvs");
- 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)";
- canvas.addEventListener("touchstart", tev1, !1);
- canvas.addEventListener("touchend", tev2, !1);
- canvas.addEventListener("touchmove", tev3, !1);
- canvas.addEventListener("mousedown", tev11, !1);
- canvas.addEventListener("mouseup", tev22, !1);
- canvas.addEventListener("mousemove", tev33, !1);
- flt = mt = tm = lps = gldt = 0;
- img1 = new Image;
- img1.src = "fps/" + aut + "en_reckless_cs_fps.png";
- img1.onload = function() {
- gsts()
- };
- img2 = new Image;
- img2.src = "fps/bg_hd1.jpg";
- img2.onload = function() {
- gsts()
- };
- img3 = new Image;
- img3.src = "fps/bg_hd2.jpg";
- img3.onload = function() {
- gsts()
- };
- img4 = new Image;
- img4.src = "fps/" + aut + "cs_m16g.png";
- img4.onload = function() {
- gsts()
- };
- img5 = new Image;
- img5.src = "fps/ctrl.png";
- img5.onload = function() {
- gsts()
- };
- img6 = new Image; - 1 == document.URL.indexOf("page") ? img6.src = "fps/en_reckless_title.jpg" : img6.src = "fps/en_reckless_title_nolink.jpg";
- img6.onload = function() {
- gsts()
- };
- img7 = new Image; - 1 == document.URL.indexOf("page") ? img7.src = "fps/en_reckless_gameover.jpg" : img7.src = "fps/en_reckless_gameover_nolink.jpg";
- img7.onload = function() {
- gsts()
- };
- document.body.buttonMode = null;
- document.body.backgroundColor = null;
- bp_f = {};
- bp_fi = 0;
- 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];
- 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];
- 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];
- 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];
- gf = 0;
- gix = Array(30);
- giy = Array(30);
- var t = a = 0;
- for (e = 0; 30 > e; e++) gix[e] = a, giy[e] = t, a += 320, 1600 <= a && (a = 0, t += 416, 1248 <= t && (t = 0));
- mfx = Array(30);
- mfy = Array(30);
- for (e = t = a = 0; 40 > e; e++) mfx[e] = a, mfy[e] = t, a += 200, 1e3 <= a && (a = 0, t += 160);
- dm_vp = 25;
- dm_x = 160;
- dm_y = 168;
- rknx = [];
- for (e = 0; 30 > e; e++) rknx[e] = [];
- rkny = [];
- for (e = 0; 30 > e; e++) rkny[e] = [];
- e = 0;
- 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];
- for (t = 0; 20 > t; t++)
- for (var n = 0; 22 > n; n++) rknx[n][t] = a[e], rkny[n][t] = a[e + 1], e += 2;
- 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];
- 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];
- msanm = [62, 0, 0, 63, 0, 0, 64, 0, 0];
- rad = Math.PI / 180;
- pl = 2.9;
- idsp1 = .34;
- idsp2 = -.34;
- hpb = [0, 0, 0, 24, 0, 0, 0, 32, 0, 24, 0, 32];
- scrux = [59, 91, 123, 165, 197, 229];
- askb = 0;
- e = document.URL.substr(0, 19);
- t = a = 0;
- for (a = 7; 19 > a; a++) t += e.charCodeAt(a);
- askb = 1;
- aini()
- }
- function aini() {
- wbj = wby = idsp = idsm = ids = msanf = dldxa = 0;
- bp_f = {};
- bp_fi = 0;
- tcx = 160;
- tcy = 300;
- shst = rshc = 0;
- tgy = tgx = 160;
- frct = 0;
- chdy = chdx = ftgy = ftgx = 160;
- rlda = 0;
- tx = "";
- var e = [1, 1, 1, 2, 2, 2, 3, 4, 5, 6, 7],
- t = 0,
- n = 0,
- r = 0;
- 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;
- for (i = 0; 11 > i; i++) switch (e[i]) {
- case 1:
- bp_f["c" + bp_fi] = {
- dx: 0,
- dy: 0,
- x: -50,
- y: -60 * Math.random() - 25,
- z: 15 * (i + 1),
- sx: 0,
- sy: 0,
- sz: 3,
- ex: 0,
- ey: 0,
- es: 0,
- lz: 12,
- wt: -86,
- ap: 0,
- hp: 20,
- dm: .5,
- f: 65,
- t: 3,
- l: 1
- };
- bp_fi++;
- break;
- case 2:
- bp_f["c" + bp_fi] = {
- dx: 0,
- dy: 0,
- x: 50,
- y: -60 * Math.random() - 25,
- z: 15 * (i + 1),
- sx: 0,
- sy: 0,
- sz: 3,
- ex: 0,
- ey: 0,
- es: 0,
- lz: 12,
- wt: -86,
- ap: 0,
- hp: 20,
- dm: .5,
- f: 129,
- t: 9,
- l: 1
- };
- bp_fi++;
- break;
- default:
- bp_f["c" + bp_fi] = {
- dx: 0,
- dy: 0,
- x: 20 * (e[i] - 3) - 41,
- y: 0,
- z: 15 * (i + 1),
- sx: 0,
- sy: 0,
- sz: 3,
- ex: 0,
- lz: -12,
- ey: 0,
- es: 0,
- wt: -40,
- ap: 0,
- hp: 20,
- dm: .5,
- f: 129,
- t: 7,
- l: 1
- }, bp_fi++
- }
- shy = shx = etg = -1;
- onsht = 0;
- mfa = mf = 19;
- mqy = 0;
- mshi = 1;
- tmny = mny = 70;
- uia = 1;
- flock = -1;
- msi = msy = msx = dmtm = 0;
- mst = mss = 1;
- blk = 0;
- ahp = hp = 78;
- gtm = 61;
- ptm = 0;
- plstm = 500;
- govgm = govy = tscr = scr = 0
- }
- function cir(e, t, n) {
- var r = -90 * rad;
- n -= 90 * rad;
- ctx.beginPath();
- ctx.arc(e, t, 6, r, n, !1);
- ctx.strokeStyle = "#ffe100";
- ctx.stroke()
- }
- function spt(e, t, n) {
- var r = iw[e],
- i = ih[e];
- ctx.drawImage(img1, ix[e], iy[e], r, i, t, n, r, i)
- }
- function sptl(e, t, n, r) {
- var i = iw[e],
- s = ih[e],
- o = i * r;
- r *= s;
- ctx.drawImage(img1, ix[e], iy[e], i, s, t - o / 2, n - r / 2, o, r)
- }
- function chg3d(e, t, n) {
- n = dm_vp / (dm_vp + n);
- return {
- x: e * n,
- y: t * n,
- sc: 100 * n,
- sdy: 1.5 * n
- }
- }
- function gondsp() {
- ctx.drawImage(img7, 0, 0, 320, 416, 0, 0, 320, 416);
- var e = String(tscr),
- t = e.length - 1,
- n;
- for (scx = 0; scx <= t; scx++) n = Math.floor(e.substr(scx, 1)), spt(174 + n, scrux[5 - t + scx], 206);
- 2 < t && spt(184, 155, 245)
- }
- function tev11(e) {
- mousePos = {
- x: e.layerX,
- y: e.layerY
- };
- Press(mousePos);
- e.preventDefault()
- }
- function tev1(e) {
- mousePos = {
- x: e.touches[0].pageX,
- y: e.touches[0].pageY
- };
- Press(mousePos);
- e.preventDefault()
- }
- function Press(e) {
- var t = e.x / wdpr;
- e = e.y / wdpr;
- switch (gs) {
- case 0:
- 175 < t && 365 < e ? Play68.goHome() : 60 > t && 350 < e ? setTimeout(function() {
- // Play68.shareFriend();
- }, 500) : gs = 1;
- break;
- case 3:
- 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);
- break;
- case 5:
- 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() {
- // Play68.shareFriend()
- }, 500)
- }
- }
- function gtckdv(e) {
- var t = null,
- n = e + "=";
- e = document.cookie;
- 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)));
- return t
- }
- function tev22(e) {
- mousePos = {
- x: e.layerX,
- y: e.layerY
- };
- Release(mousePos)
- }
- function tev2(e) {
- mousePos = {
- x: e.changedTouches[0].pageX,
- y: e.changedTouches[0].pageY
- };
- Release(mousePos);
- e.preventDefault()
- }
- function Release(e) {
- 3 == gs && (shst = idsm = ids = 0, flock = -1, mqy = 0, ctx.restore())
- }
- function tev33(e) {
- mousePos = {
- x: e.layerX,
- y: e.layerY
- };
- Move(mousePos)
- }
- function tev3(e) {
- mousePos = {
- x: e.touches[0].pageX,
- y: e.touches[0].pageY
- };
- Move(mousePos);
- e.preventDefault()
- }
- function Move(e) {
- var t = e.x / wdpr;
- e = e.y / wdpr;
- 3 == gs && 1 == shst && (tcx = t, tcy = e, 416 < tcy && (tcy = 416))
- }
- function lp() {
- 6 != dvid && setTimeout("lp()", 1e3 / 30);
- var e, t;
- switch (gs) {
- case 1:
- ctx.drawImage(img6, 0, 0, 320, 416, 0, 0, 320, 416);
- ctx.globalAlpha = blk;
- ctx.fillStyle = "#000";
- ctx.fillRect(0, 0, 320, 416);
- ctx.globalAlpha = 1;
- blk += .05;
- 1 < blk && (blk = 1, canvas.style.backgroundImage = "none", gs = 2);
- break;
- case 2:
- case 3:
- case 4:
- 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);
- t = gf | 0;
- e = giy[t] + wby - mqy | 0;
- 0 > e && (e = 0);
- 1248 < e && (e = 1248);
- 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);
- ctx.save();
- ctx.translate(0, -wby + mqy);
- 0 != ids ? (wby += wbj, 0 > wby && (wby = 0, wbj = 1), 10 < wby && (wby = 10, wbj = -1), idsp = ids) : idsp = 0;
- gf += idsp;
- 0 > gf && (gf = 29);
- 29 < gf && (gf = 0);
- 0 < rshc && rshc--;
- if (1 == shst && 0 == tmny && -1 != etg && 4 != gs && 1 == askb) {
- mshi *= -1;
- mqy = 1 == mshi ? 2 : 0;
- 0 != msanm[msanf] && spt(msanm[msanf], mshx[mfa], mshy[mfa] + mqy);
- msanf++;
- 8 < msanf && (msanf = 0);
- if (0 == rshc && 0 == tmny) {
- t = 0;
- e = 1;
- 160 < tgx && (e = -1);
- if (7 == etg.t || 11 == etg.t) t = -16, e = .5 < Math.random() ? 1 : -1;
- bp_f["c" + bp_fi] = {
- x: etg.x,
- y: etg.y + t,
- z: etg.z - 1,
- sx: .5 * Math.random() - .25,
- sy: -.25 * Math.random() - .1,
- f: 56 + Math.floor(3 * Math.random()),
- a: 1,
- t: 4,
- l: 1
- };
- bp_fi++;
- bp_f["c" + bp_fi] = {
- x: etg.x,
- y: etg.y + t,
- z: etg.z - 1,
- sx: 2 * Math.random() * e,
- sy: -2 * Math.random() - .1,
- f: 62,
- a: 2,
- t: 5,
- l: 1
- };
- bp_fi++;
- bp_f["c" + bp_fi] = {
- x: etg.x,
- y: etg.y + t,
- z: etg.z - 1,
- sx: 2 * Math.random() * e,
- sy: -2 * Math.random() - .1,
- f: 62,
- a: 2,
- t: 5,
- l: 1
- };
- bp_fi++;
- rshc = 5
- }
- etg.hp -= etg.dm;
- if (.1 > etg.hp) {
- t = 0;
- if (7 == etg.t || 11 == etg.t) t = -16, Math.random();
- for (e = 0; 15 > e; e++) bp_f["c" + bp_fi] = {
- x: etg.x,
- y: etg.y + t,
- z: etg.z - 1,
- sx: .9 * Math.random() - .45,
- sy: -.8 * Math.random(),
- ssy: .02 * Math.random() + .03,
- f: 169 + Math.floor(3 * Math.random()),
- a: 1,
- t: 10,
- l: 1
- }, bp_fi++;
- t = plstm / 23 | 0;
- 9 < t && (t = 9);
- 1 > t && (t = 1);
- bp_f["c" + bp_fi] = {
- x: tgx - 10,
- y: tgy - 30,
- z: -900,
- nm: t,
- a: 3,
- t: 12,
- l: 1
- };
- bp_fi++;
- 11 == etg.t && (etg.t = 7);
- 7 == etg.t && 100 < scr && (etg.lz = -12 * Math.random());
- etg.hp = 20;
- etg.ap = 0;
- etg.z += 100;
- etg.wt = -6;
- etg = -1;
- scr += t;
- ptm = t;
- plstm = 230
- }
- }
- 0 < plstm && plstm--;
- e = [];
- if (0 < bp_fi) {
- var r = 0,
- i;
- for (i in bp_f) t = bp_f[i], 1 == t.l && (e.push([t, -t.z]), r++);
- 0 == r && (bp_f = {}, bp_fi = 0)
- }
- srt(e, 1);
- var s;
- i = 0;
- var o;
- for (o = 0; o < e.length; o++)
- if (t = e[o][0], 1 == t.l) {
- switch (t.t) {
- case 11:
- var u = chg3d(t.x, t.y - 10, 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 | 0, f, l, 2 * a);
- t.f += 1;
- 55 < t.f && (t.f = 55);
- t.wt += .1;
- 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] = {
- x: t.x,
- y: t.y - 20,
- z: t.z,
- sx: -t.x / 25,
- sy: (-100 - t.y) / 40 + 3,
- sz: -1.6,
- ex: 0,
- ey: 0,
- es: 0,
- sc: 0,
- f: 112,
- t: 1,
- l: 1
- }, bp_fi++));
- t.dx = f - 2;
- t.dy = l - 4;
- s = t;
- t.z += -idsm; - 25 > t.z && (t.y = 100 * -Math.random(), t.z += 300);
- break;
- case 7:
- u = chg3d(t.x, t.y - 10, 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 | 0, f, l, 2 * a);
- t.f += 1;
- 45 < t.f && (t.f = 22);
- t.dx = f - 2;
- t.dy = l - 4;
- s = t;
- t.z += -.1 - idsm;
- t.z < t.lz && (t.t = 11, t.f = 46); - 25 > t.z && (t.y = 100 * -Math.random(), t.z += 300);
- break;
- case 3:
- t.z += -idsm;
- 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] = {
- x: t.x,
- y: t.y,
- z: t.z,
- sx: s,
- sy: a,
- sz: -.8,
- ex: 0,
- ey: 0,
- es: 0,
- sc: 0,
- f: 112,
- t: 1,
- l: 1
- }, bp_fi++)), t.dx = f - 3, t.dy = l, s = t;
- else if (t.z < t.lz)
- for (t.ap = 1, u = 0; 15 > u; u++) bp_f["c" + bp_fi] = {
- x: t.x,
- y: t.y - 8,
- z: t.z - 1,
- sx: 2 * Math.random(),
- sy: -2 * Math.random() - .1,
- f: 105 + Math.floor(4 * Math.random()),
- a: 2,
- t: 8,
- l: 1
- }, bp_fi++; - 20 > t.z && (t.y = 100 * -Math.random(), t.hp = 20, t.ap = 0, t.z += 500);
- break;
- case 9:
- t.z += -idsm;
- 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] = {
- x: t.x,
- y: t.y,
- z: t.z,
- sx: s,
- sy: a,
- sz: -.8,
- ex: 0,
- ey: 0,
- es: 0,
- sc: 0,
- f: 112,
- t: 1,
- l: 1
- }, bp_fi++)), t.dx = f + 1, t.dy = l, s = t;
- else if (t.z < t.lz)
- for (t.ap = 1, u = 0; 15 > u; u++) bp_f["c" + bp_fi] = {
- x: t.x,
- y: t.y - 8,
- z: t.z - 1,
- sx: -2 * Math.random(),
- sy: -2 * Math.random() - .1,
- f: 105 + Math.floor(4 * Math.random()),
- a: 2,
- t: 8,
- l: 1
- }, bp_fi++; - 20 > t.z && (t.y = 100 * -Math.random(), t.hp = 20, t.ap = 0, t.z += 500);
- break;
- case 1:
- 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, a);
- t.f++;
- 114 < t.f && (t.f = 112);
- t.sy += .1;
- t.x += t.sx;
- t.y += t.sy;
- 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));
- if (0 < t.y) {
- chdx = f;
- chdy = l - 2;
- t.ex = f;
- t.ey = l - 2;
- t.es = 3 * a;
- t.f = 8;
- t.t = 2;
- t.sx = 0;
- for (u = t.sy = 0; 5 > u; u++) bp_f["c" + bp_fi] = {
- x: t.x,
- y: t.y,
- z: t.z - 1,
- sx: 10 * Math.random() - 5,
- sy: -5 * Math.random(),
- sz: 0,
- f: 115,
- t: 2,
- a: .9,
- l: 1
- }, bp_fi++;
- bp_f["c" + bp_fi] = {
- x: t.x,
- y: t.y,
- z: t.z - 1,
- sx: 0,
- sy: -5,
- sz: 0,
- f: 115,
- t: 2,
- a: .9,
- l: 1
- };
- bp_fi++
- }
- bp_f["c" + bp_fi] = {
- x: 0,
- y: 0,
- z: t.z + 2,
- sx: 0,
- sy: 0,
- sz: 2,
- ex: f,
- ey: l,
- es: 1.2 * a,
- sc: 0,
- f: Math.floor(3 * Math.random()) + 5,
- t: 6,
- a: .9,
- l: 1
- };
- bp_fi++;
- t.sc = 1;
- if (180 < t.z || .04 > a) chdx = f, chdy = l - 2, t.l = 0, delete t;
- break;
- case 2:
- 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;
- ctx.globalCompositeOperation = "lighter";
- sptl(t.f | 0, f, l, 4 * a);
- ctx.globalCompositeOperation = "source-over";
- t.z += -idsm;
- t.x += t.sx;
- t.y += t.sy;
- t.sx *= .93;
- t.sy *= .93;
- t.f += .5;
- if (128 < t.f || 22 == (t.f | 0)) t.l = 0, delete t;
- break;
- case 4:
- 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.a -= .02;
- t.z += -idsm;
- 0 > t.a ? (t.l = 0, delete t) : (ctx.globalAlpha = t.a, sptl(t.f, f, l, a), ctx.globalAlpha = 1);
- break;
- case 5:
- u = chg3d(t.x, t.y + 8, t.z + .25);
- a = u.sc / 160;
- 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.sy += .2;
- t.a -= .07;
- t.f -= .4;
- 59 > t.f && (t.f = 59);
- u = t.a;
- 1 < u && (u = 1);
- 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);
- break;
- case 6:
- ctx.globalAlpha = t.a;
- sptl(t.f, t.ex | 0, t.ey | 0, t.es);
- ctx.globalAlpha = 1;
- t.a -= .04;
- t.es *= .94;
- t.z += -idsm;.05 > t.es && (t.es = .05);.1 > t.a && (t.l = 0, delete t);
- break;
- case 8:
- u = chg3d(t.x, t.y + 8, t.z + .25);
- a = u.sc / 160;
- 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;
- 0 < t.y && (t.y = 0, t.sy = -t.sy / (1.5 + 2 * Math.random()), t.sx *= .7);
- t.sy += .2;
- t.a -= .04;
- u = t.a;
- 1 < u && (u = 1);
- 0 > u ? (t.l = 0, delete t) : (ctx.globalAlpha = u, sptl(t.f | 0, f, l, 1.2 * a), ctx.globalAlpha = 1);
- t.z -= idsm;
- break;
- case 12:
- t.a -= .1;
- t.y--;
- u = t.a;
- 1 < u && (u = 1);
- 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);
- break;
- case 10:
- 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)
- }
- r++
- } - 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));
- 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;
- r = (ftgx - 20) / 8;
- 0 > r && (r = 0);
- 39 < r && (r = 39);
- mf > r && mf--;
- mf < r && mf++;
- mfa = mf | 0;
- ctx.restore();
- 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));
- 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));
- ctx.drawImage(img4, mfx[mfa], mfy[mfa], 200, 160, 60, 246 + mqy + (mny | 0) + govy, 200, 160);
- mny += (tmny - mny) / 5;
- 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)));
- 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);
- 0 == wbj && (wbj = 1);
- 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());
- spt(210, 0, 406);
- 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;
- 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));
- 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);
- break;
- case 5:
- gondsp();
- break;
- case 6:
- 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)
- }
- tm = Math.floor(+(new Date) / 1e3);
- tm != mt && 1 < tm && (flt = 0);
- flt++;
- mt = tm
- }
- onload = function() {
- ldri = 0;
- ldlp = setInterval("lding();", 50);
- init()
- };
|