欢迎来到程序小院
玩法:鼠标点击左键对准炮弹方向进行炮弹发射,击中上空掉落的炮弹保卫基站,
炮弹掉落会炸毁设配哦,快去防御吧^^。
开始游戏https://www.ormcc.com/play/gameStart/239
?<div?id="fb-root"></div>
?<div?id="c2canvasdiv">
????<canvas?id="c2canvas"?width="1003"?height="590"></canvas>
?</div>
* {
padding: 0;
margin: 0;
}
body {
background: #000;
color: #fff;
overflow: hidden;
-ms-touch-action: none;
}
canvas {
-ms-touch-action: none;
}
function?m()?{
?return?function()?{}
}
function?s(b)?{
?return?function()?{
??return?this[b]
?}
}
function?E(b)?{
?return?function()?{
??return?b
?}
}
var?ba,?ca,?da,?ea,?O,?fa,?ga,?ha,?ia,?ja,?ka,?la,?ma,?na,?oa,?qa,?ra,?sa,?P,?ta,?ua,?
va,?wa,?xa,?ya,?za,?Aa,?Da,?Ea,?Fa,?Ga,?Na,?Oa,?Pa,?Qa,?Ra,?Sa,?Ta,?Ua,?Xa,?Ya,?Za,?$a,?
ab,?bb,?cb,?db,?fb,?gb,?hb,?ib,?jb,?kb,?lb,?mb,?nb,?ob,?sb,?tb,?ub?=?{};
"function"?!==?typeof?Object.getPrototypeOf?&&?(Object.getPrototypeOf?=?"object"?===?
typeof?"test".__proto__??
function(b)?{
?return?b.__proto__
}:?function(b)?{
?return?b.constructor.prototype
});?(function()?{
?function?b(c,?g,?t,?u)?{
??this.set(c,?g,?t,?u)
?}
?function?k()?{
??this.Pa?=?this.Oa?=?this.Ra?=?this.Qa?=?this.Za?=?this.Ya?=?this.wa?=?this.va?=?0
?}
?function?l()?{
??v???this.Cd?=?new?Set:?(this.wd?=?{},
??this.Fg?=?0);
??this.ff?=?[];
??this.Ee?=?!0
?}
?function?f(c)?{
??d[h++]?=?c
?}
?function?a()?{
??this.Xa?=?this.Ni?=?this.y?=?this.oj?=?0
?}
?function?n(c)?{
??this.wb?=?[];
??this.$g(c)
?}
?ca?=?function(c)?{
??window.console?&&?window.console.log?&&?window.console.log(c)
?};
?ba?=?function(c)?{
??return?c
?};
?da?=?function(c)?{
??return?"undefined"?===?typeof?c
?};
?ea?=?function(c)?{
??return?"number"?===?typeof?c
?};
?O?=?function(c)?{
??return?"string"?===?typeof?c
?};
?fa?=?function(c)?{
??return?0?<?c?&&?0?===?(c?-?1?&?c)
?};
?ga?=?function(c)?{
??return?0?>?c???-c:?c
?};
?ha?=?function(c,?g)?{
??return?c?>?g???c:?g
?};
?ia?=?function(c,?g)?{
??return?c?<?g???c:?g
?};
?ja?=?Math.PI;
?ka?=?function(c)?{
??return?c?|?0
?};
?la?=?function(c,?g,?t,?u,?e,?r,?p,?q)?{
??if?(ha(c,?t)?<?ia(e,?p)?||?ia(c,?t)?>?ha(e,?p)?||?ha(g,?u)?<?ia(r,?q)?||?ia(g,?u)?>?
????ha(r,?q))?return?!?1;
??var?a?=?e?-?c?+?p?-?t,
??d?=?r?-?g?+?q?-?u;
??c?=?t?-?c;
??g?=?u?-?g;
??e?=?p?-?e;
??r?=?q?-?r;
??q?=?ga(g?*?e?-?r?*?c);
??return?ga(e?*?d?-?r?*?a)?<=?q?&&?ga(c?*?d?-?g?*?a)?<=?q
?};
?b.prototype.set?=?function(c,?g,?t,?u)?{
??this.left?=?c;
??this.top?=?g;
??this.right?=?t;
??this.bottom?=?u
?};
?b.prototype.width?=?function()?{
??return?this.right?-?this.left
?};
?b.prototype.height?=?function()?{
??return?this.bottom?-?this.top
?};
?b.prototype.offset?=?function(c,?g)?{
??this.left?+=?c;
??this.top?+=?g;
??this.right?+=?c;
??this.bottom?+=?g;
??return?this
?};
?b.prototype.Fq?=?function(c)?{
??return?!?(c.right?<?this.left?||?c.bottom?<?this.top?||?c.left?>?this.right?||?
????c.top?>?this.bottom)
?};
?b.prototype.ic?=?function(c,?g)?{
??return?c?>=?this.left?&&?c?<=?this.right?&&?g?>=?this.top?&&?g?<=?this.bottom
?};
?ma?=?b;
?k.prototype.Vk?=?function(c)?{
??this.va?=?c.left;
??this.wa?=?c.top;
??this.Ya?=?c.right;
??this.Za?=?c.top;
??this.Qa?=?c.right;
??this.Ra?=?c.bottom;
??this.Oa?=?c.left;
??this.Pa?=?c.bottom
?};
?k.prototype.Un?=?function(c,?g)?{
??if?(0?===?g)?this.Vk(c);
??else?{
???var?t?=?Math.sin(g),
???u?=?Math.cos(g),
???e?=?c.left?*?t,
???r?=?c.top?*?t,
???p?=?c.right?*?t,
???t?=?c.bottom?*?t,
???q?=?c.left?*?u,
???a?=?c.top?*?u,
???d?=?c.right?*?u,
???u?=?c.bottom?*?u;
???this.va?=?q?-?r;
???this.wa?=?a?+?e;
???this.Ya?=?d?-?r;
???this.Za?=?a?+?p;
???this.Qa?=?d?-?t;
???this.Ra?=?u?+?p;
???this.Oa?=?q?-?t;
???this.Pa?=?u?+?e
??}
?};
?k.prototype.offset?=?function(c,?g)?{
??this.va?+=?c;
??this.wa?+=?g;
??this.Ya?+=?c;
??this.Za?+=?g;
??this.Qa?+=?c;
??this.Ra?+=?g;
??this.Oa?+=?c;
??this.Pa?+=?g;
??return?this
?};
?k.prototype.Vl?=?function(c)?{
??c.left?=?ia(ia(this.va,?this.Ya),?ia(this.Qa,?this.Oa));
??c.top?=?ia(ia(this.wa,?this.Za),?ia(this.Ra,?this.Pa));
??c.right?=?ha(ha(this.va,?this.Ya),?ha(this.Qa,?this.Oa));
??c.bottom?=?ha(ha(this.wa,?this.Za),?ha(this.Ra,?this.Pa))
?};
?k.prototype.ic?=?function(c,?g)?{
??var?t?=?this.Ya?-?this.va,
??u?=?this.Za?-?this.wa,
??e?=?this.Qa?-?this.va,
??r?=?this.Ra?-?this.wa,
??p?=?c?-?this.va,
??q?=?g?-?this.wa,
??a?=?t?*?t?+?u?*?u,
??d?=?t?*?e?+?u?*?r,
??u?=?t?*?p?+?u?*?q,
??h?=?e?*?e?+?r?*?r,
??v?=?e?*?p?+?r?*?q,
??b?=?1?/?(a?*?h?-?d?*?d),
??t?=?(h?*?u?-?d?*?v)?*?b,
??a?=?(a?*?v?-?d?*?u)?*?b;
??if?(0?<=?t?&&?0?<?a?&&?1?>?t?+?a)?return?!?0;
??t?=?this.Oa?-?this.va;
??u?=?this.Pa?-?this.wa;
??a?=?t?*?t?+?u?*?u;
??d?=?t?*?e?+?u?*?r;
??u?=?t?*?p?+?u?*?q;
??b?=?1?/?(a?*?h?-?d?*?d);
??t?=?(h?*?u?-?d?*?v)?*?b;
??a?=?(a?*?v?-?d?*?u)?*?b;
??return?0?<=?t?&&?0?<?a?&&?1?>?t?+?a
?};
?k.prototype.Nd?=?function(c,?g)?{
??switch?(c)?{
??case?0:
???return?g???this.va:?this.wa;
??case?1:
???return?g???this.Ya:?this.Za;
??case?2:
???return?g???this.Qa:?this.Ra;
??case?3:
???return?g???this.Oa:?this.Pa;
??case?4:
???return?g???this.va:?this.wa;
??default:
???return?g???this.va:?this.wa
??}
?};
?k.prototype.kn?=?function()?{
??return?(this.va?+?this.Ya?+?this.Qa?+?this.Oa)?/?4
?};
?k.prototype.ln?=?function()?{
??return?(this.wa?+?this.Za?+?this.Ra?+?this.Pa)?/?4
?};
?k.prototype.Eq?=?function(c)?{
??var?g?=?c.kn(),
??t?=?c.ln();
??if?(this.ic(g,?t))?return?!?0;
??g?=?this.kn();
??t?=?this.ln();
??if?(c.ic(g,?t))?return?!?0;
??var?u,?e,?r,?p,?q,?a,?d,?h;
??for?(d?=?0;?4?>?d;?d++)?for?(h?=?0;?4?>?h;?h++)?if?(g?=?this.Nd(d,?!0),?t?=?
????this.Nd(d,?!1),?u?=?this.Nd(d?+?1,?!0),?e?=?this.Nd(d?+?1,?!1),?r?=?c.Nd(h,?!0),?p?=
????c.Nd(h,?!1),?q?=?c.Nd(h?+?1,?!0),?a?=?c.Nd(h?+?1,?!1),?la(g,?t,?u,?e,?r,?p,?q,?a))?
????return?!?0;
??return?!?1
?};
?na?=?k;
?oa?=?function(c,?g)?{
??for?(var?t?in?g)?g.hasOwnProperty(t)?&&?(c[t]?=?g[t]);
??return?c
?};
?qa?=?function(c,?g)?{
??var?t,?u;
??g?=?ka(g);
??if?(!?(0?>?g?||?g?>=?c.length))?if?(0?===?g)?c.shift();
??else?if?(g?===?c.length?-?1)?c.pop();
??else?{
???t?=?g;
???for?(u?=?c.length?-?1;?t?<?u;?t++)?c[t]?=?c[t?+?1];
???c.length?=?u
??}
?};
?ra?=?function(c,?g)?{
??c.length?=?g.length;
??var?t,?u;
??t?=?0;
??for?(u?=?g.length;?t?<?u;?t++)?c[t]?=?g[t]
?};
?sa?=?function(c,?g)?{
??var?t?=?c.indexOf(g);?-?1?!==?t?&&?qa(c,?t)
?};
?P?=?function(c)?{
??return?c?/?(180?/?ja)
?};
?ta?=?function(c)?{
??return?c?*?(180?/?ja)
?};
?ua?=?function(c)?{
??c?%=?360;
??0?>?c?&&?(c?+=?360);
??return?c
?};
?va?=?function(c)?{
??c?%=?2?*?ja;
??0?>?c?&&?(c?+=?2?*?ja);
??return?c
?};
?wa?=?function(c)?{
??return?ua(ta(c))
?};
?xa?=?function(c)?{
??return?va(P(c))
?};
?ya?=?function(c,?g,?t,?u)?{
??return?Math.atan2(u?-?g,?t?-?c)
?};
?za?=?function(c,?g)?{
??if?(c?===?g)?return?0;
??var?t?=?Math.sin(c),
??u?=?Math.cos(c),
??e?=?Math.sin(g),
??r?=?Math.cos(g),
??t?=?t?*?e?+?u?*?r;
??return?1?<=?t???0?:?-1?>=?t???ja:?Math.acos(t)
?};
?Aa?=?function(c,?g,?t)?{
??var?u?=?Math.sin(c),
??e?=?Math.cos(c),
??r?=?Math.sin(g),
??p?=?Math.cos(g);
??return?Math.acos(u?*?r?+?e?*?p)?>?t???0?<?e?*?r?-?u?*?p???va(c?+?t)?:?va(c?-?t)?:?va(g)
?};
?Da?=?function(c,?g)?{
??var?t?=?Math.sin(c),
??u?=?Math.cos(c),
??e?=?Math.sin(g),
??r?=?Math.cos(g);
??return?0?>=?u?*?e?-?t?*?r
?};
?Ea?=?function(c,?g,?t,?u,?e,?r)?{
??if?(0?===?t)?return?r???c:?g;
??var?p?=?Math.sin(t);
??t?=?Math.cos(t);
??c?-=?u;
??g?-=?e;
??var?q?=?c?*?p;
??c?=?c?*?t?-?g?*?p;
??g?=?g?*?t?+?q;
??return?r???c?+?u:?g?+?e
?};
?Fa?=?function(c,?g,?t,?u)?{
??c?=?t?-?c;
??g?=?u?-?g;
??return?Math.sqrt(c?*?c?+?g?*?g)
?};
?Ga?=?function(c,?g)?{
??return?!?c?!==?!g
?};
?Na?=?function(c)?{
??for?(var?g?in?c)?if?(c.hasOwnProperty(g))?return?!?0;
??return?!?1
?};
?Oa?=?function(c)?{
??for?(var?g?in?c)?c.hasOwnProperty(g)?&&?delete?c[g]
?};
?var?q?=?+new?Date;
?Pa?=?function()?{
??if?("undefined"?!==?typeof?window.performance)?{
???var?c?=?window.performance;
???if?("undefined"?!==?typeof?c.now)?return?c.now();
???if?("undefined"?!==?typeof?c.webkitNow)?return?c.webkitNow();
???if?("undefined"?!==?typeof?c.msNow)?return?c.msNow()
??}
??return?Date.now()?-?q
?};
需要源码请关注添加好友哦^ ^
转载:欢迎来到本站,转载请注明文章出处
https://ormcc.com/