var _0x2a4b69 = _0x465a;
(function(_0x368b6d, _0x47559d) {
var _0x5d31ec = _0x465a
, _0x2ec9dc = _0x368b6d();
while (!![]) {
try {
var _0x4f7daa = -parseInt(_0x5d31ec(0x268)) / 0x1 + -parseInt(_0x5d31ec(0x18f)) / 0x2 + parseInt(_0x5d31ec(0x20e)) / 0x3 + -parseInt(_0x5d31ec(0x1be)) / 0x4 * (parseInt(_0x5d31ec(0x1a6)) / 0x5) + -parseInt(_0x5d31ec(0x84)) / 0x6 + parseInt(_0x5d31ec(0x346)) / 0x7 * (-parseInt(_0x5d31ec(0x1ad)) / 0x8) + parseInt(_0x5d31ec(0xa2)) / 0x9;
if (_0x4f7daa === _0x47559d)
break;
else
_0x2ec9dc['push'](_0x2ec9dc['shift']());
} catch (_0x1249b3) {
_0x2ec9dc['push'](_0x2ec9dc['shift']());
}
}
}(_0x2a97, 0x8e334));
var touchStart = null, touchMove = null, mainCanvas, rawMouseX = 0x0, rawMouseY = 0x0, leftPos = 0x0, topPos = 0x0, rightPos = 0x2710, bottomPos = 0x2710, txtpos_width = 0x64, txtpos_height = 0x14, txtpos_share = '!', txtpos_lastTime = 0x0, mapx = 0x0, mapy = 0x0, mapDstX = 0x0, mapDstY = 0x0, drawMapDstPoint = ![], qPressed = ![], key1Pressed = ![], key2Pressed = ![], cursor_x_old = 0x0, cursor_y_old = 0x0, ctx, moveToX = -0x1, moveToY = -0x1, moveToXold = -0x1, moveToYold = -0x1, ws = null, ws_url = '!', leaderBoard = [], lastWinner = '', recordHolder = '', gameName = null, userScoreCurrent = 0x0, userScoreMax = 0x0, gameMode = '', noRanking = ![], teamMapPlayers = [], clanMapPlayers = [], lastSendMouseMove = Date['now'](), isTyping = ![], spacePressed = ![], qPressed = ![], wPressed = ![], ePressed = ![], aPressed = ![], sPressed = ![], zPressed = ![], xPressed = ![], int_e = 0x0, zoomVector = 0x0, DIV_MAIN_MENU = _0x2a4b69(0x92), DIV_CHAT_DESKTOP = '#bottomContainer_desktop', DIV_CHAT_MOBILE = _0x2a4b69(0x22a), DIV_CHAT = '', loginDivName, isGoldUsing = ![];
const webgl = new function() {
var _0x3c8ea7 = _0x2a4b69;
this[_0x3c8ea7(0x2a4)] = null,
this['gl'] = null,
this[_0x3c8ea7(0x31b)] = null,
this[_0x3c8ea7(0x306)] = 0x1,
this[_0x3c8ea7(0x25f)] = async function() {
var _0x3b9eba = _0x3c8ea7;
this[_0x3b9eba(0x2a4)] = document['querySelector'](_0x3b9eba(0x214)),
this['gl'] = canvas_gl[_0x3b9eba(0xeb)](_0x3b9eba(0x2fa)),
this[_0x3b9eba(0x34f)] = new Date()[_0x3b9eba(0x20a)](),
prog_font[_0x3b9eba(0x25f)](_0x3b9eba(0x2b1)),
prog_cell[_0x3b9eba(0x25f)](),
prog_rect[_0x3b9eba(0x25f)](),
prog_rectT[_0x3b9eba(0x25f)](),
prog_line['init'](),
prog_background[_0x3b9eba(0x373)](),
this[_0x3b9eba(0x2a4)][_0x3b9eba(0xa1)] = mainCanvas_onmousedown,
this[_0x3b9eba(0x2a4)][_0x3b9eba(0x325)] = mainCanvas_onmousemove,
isTouchDevice && (this['canvas_gl'][_0x3b9eba(0x277)]('touchstart', onTouchStart, ![]),
this[_0x3b9eba(0x2a4)]['addEventListener'](_0x3b9eba(0x3a3), onTouchMove, ![]),
this[_0x3b9eba(0x2a4)][_0x3b9eba(0x277)](_0x3b9eba(0x1d2), onTouchEnd, ![])),
this['gl']['enable'](this['gl'][_0x3b9eba(0x1b7)]),
this['gl']['blendFunc'](this['gl']['SRC_ALPHA'], this['gl'][_0x3b9eba(0x223)]);
}
,
this[_0x3c8ea7(0x166)] = function(_0x238da8) {
var _0x2af75b = _0x3c8ea7
, _0x20db71 = new Date()[_0x2af75b(0x20a)]() - this[_0x2af75b(0x34f)]
, _0x4c7d4c = webgl['gl'][_0x2af75b(0x366)](_0x238da8, 'u_time');
webgl['gl'][_0x2af75b(0x208)](_0x4c7d4c, _0x20db71);
}
,
this['onCanvasResize'] = function(_0x2346db, _0x15641) {
var _0x5a890c = _0x3c8ea7;
this[_0x5a890c(0x2a4)]['width'] = _0x2346db,
this['canvas_gl']['height'] = _0x15641;
}
,
this[_0x3c8ea7(0x242)] = function() {
var _0xcc61c1 = _0x3c8ea7;
this['gl'][_0xcc61c1(0x1d7)](0x0, 0x0, this['canvas_gl'][_0xcc61c1(0x335)], this[_0xcc61c1(0x2a4)]['height']),
this['gl'][_0xcc61c1(0x273)](0x0, 0x0, 0x0, 0x0),
this['gl'][_0xcc61c1(0x144)](this['gl'][_0xcc61c1(0x14c)]);
}
,
this[_0x3c8ea7(0xf7)] = function(_0xc1a910) {
var _0x91ad3f = _0x3c8ea7
, _0x2701d1 = this['gl'][_0x91ad3f(0x2ff)]();
return this['gl'][_0x91ad3f(0x26d)](this['gl']['ARRAY_BUFFER'], _0x2701d1),
this['gl'][_0x91ad3f(0x14a)](this['gl'][_0x91ad3f(0x262)], new Float32Array(_0xc1a910), this['gl'][_0x91ad3f(0x187)]),
_0x2701d1;
}
,
this[_0x3c8ea7(0x240)] = function(_0x973411, _0x19ef4e) {
var _0x2bc1e2 = _0x3c8ea7
, _0x101290 = this['gl']['createShader'](_0x973411);
this['gl'][_0x2bc1e2(0xf0)](_0x101290, _0x19ef4e),
this['gl'][_0x2bc1e2(0x9b)](_0x101290);
var _0x5651ea = this['gl']['getShaderParameter'](_0x101290, this['gl'][_0x2bc1e2(0x157)]);
if (_0x5651ea)
return _0x101290;
return console['log'](this['gl'][_0x2bc1e2(0x393)](_0x101290)),
this['gl'][_0x2bc1e2(0x23f)](_0x101290),
null;
}
,
this[_0x3c8ea7(0x37b)] = function(_0x5f2ea5, _0x274c2e) {
var _0x12ba55 = _0x3c8ea7
, _0x26ce6c = this['gl']['createProgram']();
this['gl'][_0x12ba55(0x213)](_0x26ce6c, _0x5f2ea5),
this['gl'][_0x12ba55(0x213)](_0x26ce6c, _0x274c2e),
this['gl'][_0x12ba55(0x85)](_0x26ce6c);
var _0x33d986 = this['gl']['getProgramParameter'](_0x26ce6c, this['gl']['LINK_STATUS']);
if (_0x33d986)
return _0x26ce6c;
return console[_0x12ba55(0x323)](this['gl'][_0x12ba55(0x1ea)](_0x26ce6c)),
this['gl']['deleteProgram'](_0x26ce6c),
null;
}
,
this[_0x3c8ea7(0x3b4)] = function(_0x5a5638, _0xcc44ba) {
var _0x33c55a = _0x3c8ea7
, _0x41e812 = this['createShader'](this['gl'][_0x33c55a(0x172)], _0x5a5638)
, _0x5ac56b = this['createShader'](this['gl']['FRAGMENT_SHADER'], _0xcc44ba);
return this[_0x33c55a(0x37b)](_0x41e812, _0x5ac56b);
}
,
this[_0x3c8ea7(0x2fc)] = function() {
var _0x41c65e = _0x3c8ea7;
options[_0x41c65e(0x197)](_0x41c65e(0x2ba)) == !![] ? this[_0x41c65e(0x306)] = 0.6 : this[_0x41c65e(0x306)] = 0x1;
}
;
}
();
class textureBase {
static[_0x2a4b69(0x3e4)] = [];
constructor(_0x4e0a2f, _0x297e84) {
var _0x3aee37 = _0x2a4b69;
this[_0x3aee37(0x13a)] = _0x4e0a2f,
this[_0x3aee37(0x136)] = _0x297e84,
this[_0x3aee37(0x97)] = new Image(),
this['image'][_0x3aee37(0x2dc)] = _0x297e84 + this['imageName'],
this[_0x3aee37(0x33c)] = webgl['gl'][_0x3aee37(0x8d)](),
this[_0x3aee37(0x3ae)] = ![],
this['image'][_0x3aee37(0x237)] = function() {
var _0x4a7ae9 = _0x3aee37;
webgl['gl'][_0x4a7ae9(0x1ab)](webgl['gl'][_0x4a7ae9(0x1c3)], this['gltexture']),
webgl['gl'][_0x4a7ae9(0x129)](webgl['gl'][_0x4a7ae9(0x1c3)], 0x0, webgl['gl']['RGBA'], webgl['gl']['RGBA'], webgl['gl'][_0x4a7ae9(0x1f2)], this[_0x4a7ae9(0x97)]),
webgl['gl'][_0x4a7ae9(0x2d6)](webgl['gl'][_0x4a7ae9(0x1c3)], webgl['gl'][_0x4a7ae9(0x2c7)], webgl['gl']['NEAREST']),
webgl['gl'][_0x4a7ae9(0x2d6)](webgl['gl'][_0x4a7ae9(0x1c3)], webgl['gl'][_0x4a7ae9(0x88)], webgl['gl'][_0x4a7ae9(0x10c)]),
webgl['gl'][_0x4a7ae9(0x1ed)](webgl['gl']['TEXTURE_2D']),
this[_0x4a7ae9(0x3ae)] = !![];
}
[_0x3aee37(0x322)](this),
textureSkin['textureList'][_0x4e0a2f] = this;
}
[_0x2a4b69(0x322)]() {
var _0x202569 = _0x2a4b69;
webgl['gl'][_0x202569(0x1ab)](webgl['gl'][_0x202569(0x1c3)], this[_0x202569(0x33c)]);
}
static[_0x2a4b69(0x32e)](_0x1f8ea4) {
new textureSkin(_0x1f8ea4);
}
static[_0x2a4b69(0x322)](_0x393f7b) {
var _0x297de4 = _0x2a4b69;
let _0x7d5657 = textureSkin[_0x297de4(0x197)](_0x393f7b);
_0x7d5657[_0x297de4(0x322)]();
}
static[_0x2a4b69(0x197)](_0xb547e2) {
var _0x3f5b48 = _0x2a4b69;
return textureSkin['textureList'][_0xb547e2] === undefined ? null : textureSkin[_0x3f5b48(0x3e4)][_0xb547e2];
}
static[_0x2a4b69(0x387)](_0x6cb460) {
var _0x15bb9d = _0x2a4b69;
let _0x46ebcc = textureSkin[_0x15bb9d(0x197)](_0x6cb460);
return _0x46ebcc == null ? ![] : _0x46ebcc[_0x15bb9d(0x3ae)];
}
}
class textureButton extends textureBase {
constructor(_0x5885f3) {
var _0x306bcd = _0x2a4b69;
super(_0x5885f3, _0x306bcd(0x30c));
}
}
class textureSkin extends textureBase {
constructor(_0x1f1a6b) {
var _0x92e3e1 = _0x2a4b69;
super(_0x1f1a6b, _0x92e3e1(0x25c));
}
}
class textureOLD {
static[_0x2a4b69(0x3e4)] = [];
constructor(_0x31eff1) {
var _0xca9d3a = _0x2a4b69;
this['skinName'] = _0x31eff1,
this['image'] = new Image(),
this[_0xca9d3a(0x97)][_0xca9d3a(0x2dc)] = '/cdn2/' + this[_0xca9d3a(0x2c2)],
this[_0xca9d3a(0x33c)] = webgl['gl'][_0xca9d3a(0x8d)](),
this[_0xca9d3a(0x3ae)] = ![],
this[_0xca9d3a(0x97)][_0xca9d3a(0x237)] = function() {
var _0x30b0b0 = _0xca9d3a;
webgl['gl'][_0x30b0b0(0x1ab)](webgl['gl']['TEXTURE_2D'], this[_0x30b0b0(0x33c)]),
webgl['gl'][_0x30b0b0(0x129)](webgl['gl'][_0x30b0b0(0x1c3)], 0x0, webgl['gl']['RGBA'], webgl['gl'][_0x30b0b0(0x399)], webgl['gl'][_0x30b0b0(0x1f2)], this[_0x30b0b0(0x97)]),
webgl['gl'][_0x30b0b0(0x2d6)](webgl['gl']['TEXTURE_2D'], webgl['gl'][_0x30b0b0(0x2c7)], webgl['gl'][_0x30b0b0(0x10c)]),
webgl['gl'][_0x30b0b0(0x2d6)](webgl['gl'][_0x30b0b0(0x1c3)], webgl['gl'][_0x30b0b0(0x88)], webgl['gl'][_0x30b0b0(0x10c)]),
webgl['gl'][_0x30b0b0(0x1ed)](webgl['gl']['TEXTURE_2D']),
this[_0x30b0b0(0x3ae)] = !![];
}
['bind'](this),
textureSkin[_0xca9d3a(0x3e4)][_0x31eff1] = this;
}
['bind']() {
var _0x5c2dcc = _0x2a4b69;
webgl['gl']['bindTexture'](webgl['gl'][_0x5c2dcc(0x1c3)], this[_0x5c2dcc(0x33c)]);
}
static[_0x2a4b69(0x32e)](_0x2f7366) {
new textureSkin(_0x2f7366);
}
static[_0x2a4b69(0x322)](_0x3eeaaa) {
var _0x5141d2 = _0x2a4b69;
let _0x2c8318 = textureSkin[_0x5141d2(0x197)](_0x3eeaaa);
_0x2c8318[_0x5141d2(0x322)]();
}
static[_0x2a4b69(0x197)](_0x20a6ab) {
var _0x21822c = _0x2a4b69;
return textureSkin['textureList'][_0x20a6ab] === undefined ? null : textureSkin[_0x21822c(0x3e4)][_0x20a6ab];
}
static['isReady'](_0x1574bb) {
var _0x572774 = _0x2a4b69;
let _0x1a9b4a = textureSkin[_0x572774(0x197)](_0x1574bb);
return _0x1a9b4a == null ? ![] : _0x1a9b4a['isLoaded'];
}
}
class screenButton {
constructor(_0x8e7921, _0x180610, _0x52f843, _0x1a33b3, _0x1bc1a5) {
var _0x4ace57 = _0x2a4b69;
return this['x'] = _0x8e7921,
this['y'] = _0x180610,
this['w'] = _0x52f843,
this['h'] = _0x1a33b3,
this['bottomToTop'] = 0x0,
this[_0x4ace57(0x28a)] = 0x0,
this[_0x4ace57(0x361)] = 0x0,
this['src'] = null,
this['img'] = null,
this['name'] = _0x1bc1a5,
this[_0x4ace57(0x249)] = ![],
this[_0x4ace57(0x39f)] = null,
this[_0x4ace57(0x3a0)] = null,
this[_0x4ace57(0x1f5)] = ![],
this[_0x4ace57(0x2c9)] = !![],
this[_0x4ace57(0x37d)] = null,
this;
}
[_0x2a4b69(0x156)](_0x187159) {
var _0x2eba1e = _0x2a4b69;
this[_0x2eba1e(0x2c9)] = _0x187159;
}
['setBottomToTop']() {
this['bottomToTop'] = 0x1;
}
['setRightToLeft']() {
var _0x5d9cf4 = _0x2a4b69;
this[_0x5d9cf4(0x28a)] = 0x1;
}
[_0x2a4b69(0xe3)]() {
this['wfull'] = 0x1;
}
[_0x2a4b69(0x148)](_0xfc8ed4, _0x14a554) {
this['x'] = _0xfc8ed4,
this['y'] = _0x14a554;
}
['setSize'](_0x29f687, _0x2cf86c) {
this['w'] = _0x29f687,
this['h'] = _0x2cf86c;
}
['isInside'](_0x879cb3, _0x5d8076) {
var _0x25d277 = _0x2a4b69;
if (this[_0x25d277(0x2c9)] == ![])
return ![];
var _0x1c5d81 = this[_0x25d277(0x19a)]()
, _0x31b8b1 = _0x879cb3 - _0x1c5d81['x']
, _0x7b58a9 = _0x5d8076 - _0x1c5d81['y'];
return _0x31b8b1 >= 0x0 && _0x31b8b1 <= _0x1c5d81['w'] && _0x7b58a9 >= 0x0 && _0x7b58a9 <= _0x1c5d81['h'] ? !![] : ![];
}
[_0x2a4b69(0x1fb)](_0x4e6b3c, _0x2f0de2) {
var _0x2e8b99 = _0x2a4b69;
this[_0x2e8b99(0x1f5)] = !![],
this[_0x2e8b99(0x39f)] != null && this[_0x2e8b99(0x39f)]();
}
[_0x2a4b69(0xb9)](_0x53c910, _0x349672) {
var _0x20b6e1 = _0x2a4b69;
this[_0x20b6e1(0x1f5)] = ![],
this[_0x20b6e1(0x3a0)] != null && this['onButtonUp']();
}
[_0x2a4b69(0x19a)]() {
var _0x32c3aa = _0x2a4b69, _0x2244c3;
this[_0x32c3aa(0x194)] == 0x1 ? _0x2244c3 = mainCanvas[_0x32c3aa(0x326)] - this['y'] : _0x2244c3 = this['y'];
var _0x3df531;
this[_0x32c3aa(0x28a)] == 0x1 ? _0x3df531 = mainCanvas[_0x32c3aa(0x335)] - this['x'] : _0x3df531 = this['x'];
var _0x572df3;
return this[_0x32c3aa(0x361)] == 0x1 ? (_0x3df531 = 0x0,
_0x572df3 = mainCanvas[_0x32c3aa(0x335)]) : _0x572df3 = this['w'],
{
'x': _0x3df531,
'y': _0x2244c3,
'w': _0x572df3,
'h': this['h']
};
}
[_0x2a4b69(0x14d)]() {
var _0x2eb718 = _0x2a4b69
, _0x439f92 = 0x12
, _0x4bec2a = this[_0x2eb718(0x19a)]();
ctx[_0x2eb718(0x111)] = 0.9,
ctx[_0x2eb718(0x93)] = '#F1C40F',
ctx[_0x2eb718(0x1c1)](_0x4bec2a['x'], _0x4bec2a['y'], _0x4bec2a['w'], _0x4bec2a['h']),
ctx[_0x2eb718(0x111)] = 0x1,
ctx[_0x2eb718(0x93)] = '#FFF',
ctx[_0x2eb718(0x3af)] = _0x439f92 + _0x2eb718(0x295);
var _0x54f6d4 = ctx['measureText'](this[_0x2eb718(0x101)])[_0x2eb718(0x335)]
, _0x169691 = (_0x4bec2a['w'] - _0x54f6d4) / 0x2
, _0x2c0d55 = (_0x4bec2a['h'] - _0x439f92) / 0x2 - 0x2;
ctx[_0x2eb718(0x2a2)](this['name'], _0x4bec2a['x'] + _0x169691, _0x4bec2a['y'] + _0x439f92 + _0x2c0d55);
}
['loadImage'](_0x165168) {
var _0x5ddc1f = _0x2a4b69;
this['img'] = new Image(),
this['img'][_0x5ddc1f(0x2dc)] = _0x5ddc1f(0x30c) + _0x165168,
this['src'] = _0x165168,
this[_0x5ddc1f(0x37d)] = new textureButton(_0x165168);
}
['drawImage']() {
var _0x10ceb5 = _0x2a4b69
, _0x277cd7 = this[_0x10ceb5(0x19a)]();
ctx[_0x10ceb5(0x111)] = 0x1,
ctx[_0x10ceb5(0x93)] = '#FFFFFF',
ctx[_0x10ceb5(0x232)](this[_0x10ceb5(0x1ff)], _0x277cd7['x'], _0x277cd7['y'], _0x277cd7['w'], _0x277cd7['h']);
}
[_0x2a4b69(0x1e5)]() {
var _0x13d815 = _0x2a4b69;
if (this[_0x13d815(0x2c9)] == ![])
return;
switch (renderMode) {
case RENDERMODE_CTX:
this[_0x13d815(0x1ff)] != null ? this[_0x13d815(0x232)]() : this['drawGeneric']();
break;
case RENDERMODE_GL:
textureButton[_0x13d815(0x387)](this[_0x13d815(0x2dc)]) && (textureButton[_0x13d815(0x322)](this[_0x13d815(0x2dc)]),
prog_rectT[_0x13d815(0x1e5)](this['x'], this['y'], this['w'], this['h'], this[_0x13d815(0x194)], this[_0x13d815(0x28a)]));
break;
}
}
}
var sb;
function buttonsInit() {
var _0x1fe8fe = _0x2a4b69
, _0x223e70 = {};
return _0x223e70[_0x1fe8fe(0x1c4)] = new screenButton(0x5,0xd2,0x30,0x30,_0x1fe8fe(0x248)),
_0x223e70[_0x1fe8fe(0x1c4)][_0x1fe8fe(0xd8)](_0x1fe8fe(0x28d)),
_0x223e70[_0x1fe8fe(0x1c4)][_0x1fe8fe(0x39f)] = function() {
var _0x579714 = _0x1fe8fe;
closeFullscreen(),
$(DIV_MAIN_MENU)[_0x579714(0x11e)](_0x579714(0xaf));
}
,
_0x223e70[_0x1fe8fe(0x142)] = new screenButton(0x0,0x168,0x30,0x30,_0x1fe8fe(0x1b3)),
_0x223e70[_0x1fe8fe(0x142)][_0x1fe8fe(0xd8)]('coin.png'),
_0x223e70[_0x1fe8fe(0x142)][_0x1fe8fe(0x39f)] = function() {
var _0x1baf43 = _0x1fe8fe;
options[_0x1baf43(0x197)](_0x1baf43(0x1f0)) ? (sendUint8(OPCODE_C2S_USEGOLD_SMALL_START),
isGoldUsing = !![]) : sendUint8(OPCODE_C2S_USEGOLD_SMALL_ONCE);
}
,
_0x223e70[_0x1fe8fe(0x142)]['onButtonUp'] = function() {
var _0x274e4d = _0x1fe8fe;
options['get'](_0x274e4d(0x1f0)) && (sendUint8(OPCODE_C2S_USEGOLD_SMALL_END),
isGoldUsing = ![]);
}
,
_0x223e70['useGoldBig'] = new screenButton(0x50,0x168,0x30,0x30,_0x1fe8fe(0x271)),
_0x223e70[_0x1fe8fe(0x1de)][_0x1fe8fe(0xd8)](_0x1fe8fe(0x12b)),
_0x223e70[_0x1fe8fe(0x1de)][_0x1fe8fe(0x39f)] = function() {
var _0x49a74a = _0x1fe8fe;
options[_0x49a74a(0x197)](_0x49a74a(0x1f0)) ? (sendUint8(OPCODE_C2S_USEGOLD_SMALL_START),
sendUint8(OPCODE_C2S_USEGOLD_BIG_START),
isGoldUsing = !![]) : sendUint8(OPCODE_C2S_USEGOLD_BIG_ONCE);
}
,
_0x223e70[_0x1fe8fe(0x1de)]['onButtonUp'] = function() {
var _0x42df2d = _0x1fe8fe;
options[_0x42df2d(0x197)](_0x42df2d(0x1f0)) && (sendUint8(OPCODE_C2S_USEGOLD_SMALL_END),
sendUint8(OPCODE_C2S_USEGOLD_BIG_END),
isGoldUsing = ![]);
}
,
_0x223e70[_0x1fe8fe(0x139)] = new screenButton(0x0,0x1c2,0x30,0x30,'ooo'),
_0x223e70[_0x1fe8fe(0x139)][_0x1fe8fe(0xd8)]('more.png'),
_0x223e70[_0x1fe8fe(0x139)]['onButtonDown'] = function() {
sendUint8(OPCODE_C2S_EMITFOOD_START);
}
,
_0x223e70['feed'][_0x1fe8fe(0x3a0)] = function() {
sendUint8(OPCODE_C2S_EMITFOOD_STOP);
}
,
_0x223e70[_0x1fe8fe(0x1c9)] = new screenButton(0x0,0x1f4,0x30,0x30,_0x1fe8fe(0x198)),
_0x223e70[_0x1fe8fe(0x1c9)]['loadImage'](_0x1fe8fe(0x7d)),
_0x223e70['split'][_0x1fe8fe(0x39f)] = function() {
sendUint8(OPCODE_C2S_SPLIT);
}
,
_0x223e70[_0x1fe8fe(0x2d4)] = new screenButton(0x28,0x1f4,0x30,0x30,_0x1fe8fe(0x74)),
_0x223e70['zoomIn'][_0x1fe8fe(0xd8)](_0x1fe8fe(0x36c)),
_0x223e70[_0x1fe8fe(0x2d4)]['onButtonDown'] = function() {
zoomVector = 0x1;
}
,
_0x223e70[_0x1fe8fe(0x2d4)]['onButtonUp'] = function() {
zoomVector = 0x0;
}
,
_0x223e70[_0x1fe8fe(0xf6)] = new screenButton(0x50,0x1f4,0x30,0x30,'(-)'),
_0x223e70['zoomOut'][_0x1fe8fe(0xd8)](_0x1fe8fe(0x36d)),
_0x223e70[_0x1fe8fe(0xf6)][_0x1fe8fe(0x39f)] = function() {
zoomVector = -0x1;
}
,
_0x223e70[_0x1fe8fe(0xf6)][_0x1fe8fe(0x3a0)] = function() {
zoomVector = 0x0;
}
,
_0x223e70[_0x1fe8fe(0x178)] = new screenButton(0x30,0x30,0x30,0x30,_0x1fe8fe(0x3d2)),
_0x223e70[_0x1fe8fe(0x178)][_0x1fe8fe(0xd8)](_0x1fe8fe(0x1cf)),
_0x223e70[_0x1fe8fe(0x178)][_0x1fe8fe(0x309)](),
_0x223e70[_0x1fe8fe(0x178)][_0x1fe8fe(0x238)](),
_0x223e70[_0x1fe8fe(0x178)][_0x1fe8fe(0xb4)] = ![],
_0x223e70[_0x1fe8fe(0x178)][_0x1fe8fe(0x29e)] = function(_0x34d9b9) {
var _0x12b3b3 = _0x1fe8fe;
this[_0x12b3b3(0xb4)] = _0x34d9b9;
this[_0x12b3b3(0xb4)] ? $(DIV_CHAT)['show']() : $(DIV_CHAT)['hide']();
for (b in _0x223e70) {
_0x223e70[b][_0x12b3b3(0x156)](!this[_0x12b3b3(0xb4)]);
}
}
,
_0x223e70[_0x1fe8fe(0x178)]['onButtonDown'] = function() {
var _0xe92ac5 = _0x1fe8fe;
this[_0xe92ac5(0x29e)](!![]);
}
[_0x1fe8fe(0x322)](_0x223e70[_0x1fe8fe(0x178)]),
_0x223e70;
}
function sendChat2(_0x2b2aa2) {
var _0x13f1e3 = _0x2a4b69;
if (_0x2b2aa2['substring'](0x0, 0x3) == '-g\x20') {
let _0x3ae087 = _0x2b2aa2[_0x13f1e3(0x3f2)](0x3)
, _0x579403 = Array[_0x13f1e3(0x2fb)](document[_0x13f1e3(0x10b)]('#gamemode\x20option'))
, _0x2a4c0e = _0x579403['find'](_0x2ae4a7=>_0x2ae4a7[_0x13f1e3(0xec)] === _0x3ae087[_0x13f1e3(0x3d6)]());
_0x2a4c0e != null && (_0x2a4c0e[_0x13f1e3(0x264)] = !![],
setserver4(_0x2a4c0e[_0x13f1e3(0x1e9)]));
} else {
if (_0x2b2aa2['substring'](0x0, 0x4) == _0x13f1e3(0x2be)) {
let _0x6ae6a5 = _0x2b2aa2[_0x13f1e3(0x3f2)](0x4)
, _0x1ae407 = Array[_0x13f1e3(0x2fb)](document[_0x13f1e3(0x10b)](_0x13f1e3(0x31d)))
, _0x4d9b12 = _0x1ae407['find'](_0x486aa0=>_0x486aa0[_0x13f1e3(0xec)] === _0x6ae6a5[_0x13f1e3(0x3d6)]());
_0x4d9b12 != null && (_0x4d9b12[_0x13f1e3(0x264)] = !![],
skipPopupOnClose = !![],
reconnect = 0x1,
cellManager[_0x13f1e3(0xa7)] = DRAWMODE_NORMAL,
cellManager[_0x13f1e3(0xac)](),
userScoreCurrent = 0x0,
userScoreMax = 0x0,
playMode = PLAYMODE_PLAY,
setserver4(_0x4d9b12[_0x13f1e3(0x1e9)]));
} else {
if (_0x2b2aa2[_0x13f1e3(0x3f2)](0x0, 0x4) == _0x13f1e3(0x1bc)) {
let _0x2e8e4f = _0x2b2aa2[_0x13f1e3(0x3f2)](0x4)
, _0x5bbb1a = Array[_0x13f1e3(0x2fb)](document[_0x13f1e3(0x10b)](_0x13f1e3(0x31d)))
, _0xc7caa1 = _0x5bbb1a['find'](_0x4ce6d7=>_0x4ce6d7[_0x13f1e3(0xec)] === _0x2e8e4f[_0x13f1e3(0x3d6)]());
_0xc7caa1 != null && (_0xc7caa1[_0x13f1e3(0x264)] = !![],
skipPopupOnClose = !![],
reconnect = 0x1,
cellManager[_0x13f1e3(0xa7)] = DRAWMODE_NORMAL,
cellManager[_0x13f1e3(0xac)](),
playMode = PLAYMODE_SPECTATE,
setserver4(_0xc7caa1[_0x13f1e3(0x1e9)]));
} else {
if (_0x2b2aa2 == '-odulekle100k') {
let _0x32aef2 = confirm(_0x13f1e3(0x384));
_0x32aef2 && odulEkle_100k();
} else {
if (_0x2b2aa2 == '-b')
sendUint8(OPCODE_C2S_GET_BONUS_INFO);
else {
if (_0x2b2aa2 == _0x13f1e3(0x39b))
sendUint8(OPCODE_C2S_SHOW_BONUS_INFO);
else {
if (_0x2b2aa2[_0x13f1e3(0x3f2)](0x0, 0x4) == _0x13f1e3(0x372)) {
let _0x260a81 = _0x2b2aa2[_0x13f1e3(0x3f2)](0x4);
var _0x19099c = prepareData(0x5);
_0x19099c[_0x13f1e3(0x260)](0x0, OPCODE_C2S_BONUS_TO_GOLD),
_0x19099c['setUint32'](0x1, _0x260a81, !![]),
wsSend(_0x19099c);
} else {
if (_0x2b2aa2[_0x13f1e3(0x395)] > 0x0) {
var _0x46165e = !![];
Number(localStorage[_0x13f1e3(0x30f)]) == CHATMODE_AGARZ && (_0x46165e = confirm(_0x2b2aa2 + '\x0a' + trans[0x12b] + '\x0a' + trans[0x79])),
_0x46165e && sendChat(_0x2b2aa2);
}
}
}
}
}
}
}
}
}
window['sendChat2'] = sendChat2;
function sendChatMessage() {
var _0x2d7348 = _0x2a4b69
, _0x1ece6b = '';
isMobile ? _0x1ece6b = _0x2d7348(0x1d4) : _0x1ece6b = 'chat_textbox';
var _0x2e2f02 = document[_0x2d7348(0x19e)](_0x1ece6b);
_0x2e2f02[_0x2d7348(0x3ba)](),
chattxt = _0x2e2f02['value'],
sendChat2(chattxt),
_0x2e2f02[_0x2d7348(0x1e9)] = '';
}
function onTouchStart(_0x2f75df) {
var _0x4ef38b = _0x2a4b69;
_0x2f75df[_0x4ef38b(0x1e7)]();
var _0x4d234a = 0x0;
for (var _0x2e1bc5 of _0x2f75df[_0x4ef38b(0x2b2)]) {
var _0x131ba2 = {
'x': Math[_0x4ef38b(0x17c)](_0x2e1bc5['clientX']),
'y': Math[_0x4ef38b(0x17c)](_0x2e1bc5[_0x4ef38b(0x352)])
};
for (var _0x222f90 in sb) {
sb[_0x222f90]['isInside'](_0x131ba2['x'], _0x131ba2['y']) && (sb[_0x222f90][_0x4ef38b(0x1fb)](_0x131ba2['x'], _0x131ba2['y']),
_0x4d234a = 0x1);
}
isAdminSafe() && spawnOnClick && (spawnOnClick = ![],
gamexy = cameraManager[_0x4ef38b(0x2b3)](_0x131ba2['x'], _0x131ba2['y']),
sendSpawnPlayerAdmin(gamexy['x'], gamexy['y'])),
tryClickChatName(_0x131ba2['x'], _0x131ba2['y']),
tryClickChangeSpectator(_0x131ba2['x'], _0x131ba2['y']);
}
if (_0x4d234a == 0x1)
return;
_0x2f75df[_0x4ef38b(0x2b2)][_0x4ef38b(0x395)] == 0x1 && (touchStart = _0x2f75df[_0x4ef38b(0x2b2)][0x0]);
}
function onTouchMove(_0x1dc59c) {
var _0x53d9a9 = _0x2a4b69;
_0x1dc59c[_0x53d9a9(0x1e7)](),
touchMove = null;
if (touchStart != null)
for (var _0x35b98c of _0x1dc59c[_0x53d9a9(0x3fa)]) {
if (_0x35b98c[_0x53d9a9(0x2db)] == touchStart[_0x53d9a9(0x2db)]) {
touchMove = _0x35b98c;
break;
}
}
touchMove != null && (dx = touchMove['clientX'] - touchStart[_0x53d9a9(0x104)],
dy = touchMove[_0x53d9a9(0x352)] - touchStart[_0x53d9a9(0x352)],
rawMouseX = mainCanvas[_0x53d9a9(0x335)] / 0x2 + dx * 0x3,
rawMouseY = mainCanvas[_0x53d9a9(0x326)] / 0x2 + dy * 0x3),
sendMouseMove();
}
function onTouchEnd(_0x406ec7) {
var _0x315505 = _0x2a4b69;
_0x406ec7[_0x315505(0x1e7)]();
for (var _0x1fd08 of _0x406ec7[_0x315505(0x2b2)]) {
touchStart != null && _0x1fd08[_0x315505(0x2db)] == touchStart[_0x315505(0x2db)] && (touchStart = null,
touchMove = null);
}
for (var _0x1fd08 of _0x406ec7['changedTouches']) {
var _0x18ed99 = {
'x': Math[_0x315505(0x17c)](_0x1fd08['clientX']),
'y': Math['floor'](_0x1fd08[_0x315505(0x352)])
};
for (var _0x4a601e in sb) {
sb[_0x4a601e][_0x315505(0x1f5)] && sb[_0x4a601e][_0x315505(0xb9)](_0x18ed99['x'], _0x18ed99['y']);
}
}
}
var topMessage1 = ''
, topMessage2 = ''
, topMessage3 = ''
, winPrize = 0x0
, enterPrice = 0x0
, clientVersion = 0x2710
, serverVersion = 0x0
, playerMaxMass = 0x0
, playerMaxCells = 0x0
, virusMinAmount = 0x0
, virusMaxAmount = 0x0
, virusCount = 0x0
, playerCount = 0x0
, observerCount = 0x0
, reconnect = 0x0
, premiumPlayerCount = 0x0
, premiumPlayerMinForBoost = 0x0
, changeSkinCounter = 0x0
, leaderboard_ext = []
, timestamp = 0x0
, isTouchDevice = 'ontouchstart'in document[_0x2a4b69(0x6e)]
, mouseDetected = ![];
const DRAWMODE_NORMAL = 0x0
, DRAWMODE_REPLAY_PLAY = 0x1
, DRAWMODE_REPLAY_STOP = 0x2
, RENDERMODE_CTX = 0x1
, RENDERMODE_GL = 0x2
, RENDERMODE_TEST = 0x3;
var renderMode = RENDERMODE_GL
, demo = 0x0
, fixPos = 0x1
, leaderboardIndex = 0x0
, ColorManager = {
'Dark': {
'Gold': _0x2a4b69(0x114),
'Prize': _0x2a4b69(0x110),
'GoldToPrize': _0x2a4b69(0x110),
'AutoBig': _0x2a4b69(0x110),
'TopMessage': '#00FF00',
'ChatT': _0x2a4b69(0x123),
'ChatC': _0x2a4b69(0x1a9),
'ChatA': _0x2a4b69(0x71),
'ChatElse': _0x2a4b69(0x381),
'Leaderboard_Background': '#000000',
'Leaderboard_LastWinner': _0x2a4b69(0x114),
'Name_Default': _0x2a4b69(0x381),
'Name_SameTeamOnList': _0x2a4b69(0x1eb),
'Name_SameTeamOnMap': _0x2a4b69(0x1eb),
'Name_SameClanOnList': _0x2a4b69(0x115),
'Name_SameClanOnMap': _0x2a4b69(0x8c),
'Admin_MenuIcon': _0x2a4b69(0x11a),
'RoomInfo': _0x2a4b69(0x381),
'Clear': '#111111',
'TimerAndRecord_BG': _0x2a4b69(0x78),
'TimerAndRecord_Timer': _0x2a4b69(0x8c),
'TimerAndRecord_Record': _0x2a4b69(0x114),
'Score': _0x2a4b69(0x381),
'Map_BG': _0x2a4b69(0x78),
'Map_Dst': _0x2a4b69(0x11a),
'Map_Me': _0x2a4b69(0x381),
'Position': _0x2a4b69(0x2b8),
'Chat_Default': _0x2a4b69(0x11a),
'Border': _0x2a4b69(0x11a),
'Grid': '#AAAAAA',
'EnterPrice': '#FF0000',
'UserID': _0x2a4b69(0x381),
'LockMouse': _0x2a4b69(0x381),
'Leaderboard_Spectator': '#FF0000',
'Leaderboard_Player': _0x2a4b69(0x25b),
'Leaderboard_Default': _0x2a4b69(0x381),
'Chat_AccNo': _0x2a4b69(0x78),
'LastSeconds': _0x2a4b69(0x11a),
'AdminInfo': _0x2a4b69(0x11a),
'MovePoint': _0x2a4b69(0x381),
'Chat_Guest': _0x2a4b69(0x381),
'Virus_Line': _0x2a4b69(0x2ea),
'RedVirus_Line': _0x2a4b69(0xd1),
'TouchMark': _0x2a4b69(0x22d),
'CellBorder': _0x2a4b69(0x381),
'Chat_BG': _0x2a4b69(0x1d0)
},
'Light': {
'Gold': _0x2a4b69(0x2ef),
'Prize': '#FFF000',
'GoldToPrize': _0x2a4b69(0x1e1),
'AutoBig': _0x2a4b69(0x110),
'TopMessage': _0x2a4b69(0x87),
'ChatT': _0x2a4b69(0x123),
'ChatC': _0x2a4b69(0x1ca),
'ChatA': _0x2a4b69(0x71),
'ChatElse': _0x2a4b69(0x381),
'Leaderboard_Background': _0x2a4b69(0x1d0),
'Leaderboard_LastWinner': '#FFFF00',
'Name_Default': '#FFFFFF',
'Name_SameTeamOnList': _0x2a4b69(0x1eb),
'Name_SameTeamOnMap': _0x2a4b69(0x1eb),
'Name_SameClanOnList': '#00FF00',
'Name_SameClanOnMap': _0x2a4b69(0x8c),
'Admin_MenuIcon': _0x2a4b69(0x11a),
'RoomInfo': _0x2a4b69(0x1d0),
'Clear': '#F2FBFF',
'TimerAndRecord_BG': _0x2a4b69(0x1d0),
'TimerAndRecord_Timer': _0x2a4b69(0x8c),
'TimerAndRecord_Record': _0x2a4b69(0x114),
'Score': '#000000',
'Map_BG': _0x2a4b69(0x1d0),
'Map_Dst': _0x2a4b69(0x263),
'Map_Me': '#FFFFFF',
'Position': _0x2a4b69(0x2b8),
'Chat_Default': '#FF0000',
'Border': _0x2a4b69(0x11a),
'Grid': _0x2a4b69(0x1d0),
'EnterPrice': _0x2a4b69(0x11a),
'UserID': _0x2a4b69(0x1d0),
'LockMouse': _0x2a4b69(0x1d0),
'Leaderboard_Spectator': _0x2a4b69(0x11a),
'Leaderboard_Player': _0x2a4b69(0x25b),
'Leaderboard_Default': '#FFFFFF',
'Chat_AccNo': _0x2a4b69(0x78),
'LastSeconds': '#FF0000',
'AdminInfo': '#FF0000',
'MovePoint': _0x2a4b69(0x381),
'Chat_Guest': _0x2a4b69(0x381),
'Virus_Line': _0x2a4b69(0x2ea),
'RedVirus_Line': _0x2a4b69(0xd1),
'TouchMark': _0x2a4b69(0x22d),
'CellBorder': _0x2a4b69(0x1d0),
'Chat_BG': _0x2a4b69(0x1d0)
},
'Current': {},
'Current_RGB': {},
'Current_RGB_GL': {},
'hexToRgb': function(_0x34ef71) {
var _0x2ab872 = _0x2a4b69
, _0x4522a7 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i[_0x2ab872(0xfd)](_0x34ef71);
return _0x4522a7 ? {
'r': parseInt(_0x4522a7[0x1], 0x10),
'g': parseInt(_0x4522a7[0x2], 0x10),
'b': parseInt(_0x4522a7[0x3], 0x10),
'toGL': function() {
return [this['r'] / 0xff, this['g'] / 0xff, this['b'] / 0xff];
}
} : null;
},
'UpdateCurrent': function() {
var _0x2ab2f8 = _0x2a4b69;
options['get'](_0x2ab2f8(0x3f0)) ? this[_0x2ab2f8(0x163)] = this[_0x2ab2f8(0x230)] : this[_0x2ab2f8(0x163)] = this[_0x2ab2f8(0x14e)];
for (let _0xb1e3a in this[_0x2ab2f8(0x163)]) {
this[_0x2ab2f8(0x134)][_0xb1e3a] = this[_0x2ab2f8(0x250)](this[_0x2ab2f8(0x163)][_0xb1e3a]),
this[_0x2ab2f8(0x1da)][_0xb1e3a] = this['Current_RGB'][_0xb1e3a][_0x2ab2f8(0x35c)]();
}
}
};
class textMover {
constructor(_0x3453e, _0x184bbe, _0x1d18a7, _0x374962, _0x24bf7b, _0x3e4308, _0x263f27, _0x566e06) {
var _0x103bdf = _0x2a4b69;
this[_0x103bdf(0x19f)] = _0x3453e,
this['xs'] = _0x184bbe,
this['ys'] = _0x1d18a7,
this['x'] = _0x184bbe,
this['y'] = _0x1d18a7,
this['vx'] = _0x374962,
this['vy'] = _0x24bf7b,
this[_0x103bdf(0x21e)] = _0x3e4308,
this[_0x103bdf(0x313)] = _0x263f27,
this[_0x103bdf(0xad)] = _0x566e06,
this[_0x103bdf(0x10f)] = new Date()[_0x103bdf(0x20a)](),
textMoverList['push'](this);
}
[_0x2a4b69(0x2de)]() {
var _0x2b94d5 = _0x2a4b69;
return new Date()[_0x2b94d5(0x20a)]() - this[_0x2b94d5(0x10f)];
}
[_0x2a4b69(0x6b)]() {
var _0x289c08 = _0x2a4b69;
if (this[_0x289c08(0x2de)]() >= this['timeOfLife']) {
var _0x18a70f = textMoverList[_0x289c08(0xb8)](this);
textMoverList[_0x289c08(0x1df)](_0x18a70f, 0x1);
}
}
['draw']() {
var _0x1cb51d = _0x2a4b69
, _0x3bf0a4 = this['getAge']()
, _0x2ab5f7 = _0x3bf0a4 / 0x3e8
, _0x5b621d = _0x3bf0a4 / this[_0x1cb51d(0x21e)]
, _0x1ae4a8 = (0x1 - _0x5b621d) / 1.5
, _0x2047ed = 0x1e - Math[_0x1cb51d(0x25d)](_0x5b621d * 0x14);
this['x'] = this['xs'] + this['vx'] * _0x2ab5f7,
this['y'] = this['ys'] + this['vy'] * _0x2ab5f7;
if (_0x3bf0a4 < this[_0x1cb51d(0x21e)])
switch (renderMode) {
case RENDERMODE_CTX:
ctx[_0x1cb51d(0x111)] = _0x1ae4a8,
ctx[_0x1cb51d(0x3af)] = _0x2047ed + 'px\x20Ubuntu',
ctx['fillStyle'] = this[_0x1cb51d(0x313)],
ctx['fillText'](this[_0x1cb51d(0x19f)], this['x'], this['y']);
break;
case RENDERMODE_GL:
prog_font[_0x1cb51d(0x164)](this['x'], this['y'], this[_0x1cb51d(0xad)], _0x1ae4a8, _0x2047ed, this[_0x1cb51d(0x19f)]);
break;
}
}
}
var textMoverList = [];
function secToTime(_0x5752ae) {
var _0x26f974 = Math['floor'](_0x5752ae / 0x3c)
, _0x4bab96 = _0x5752ae % 0x3c
, _0x3caea2 = '';
return _0x26f974 < 0xa && (_0x3caea2 += '0'),
_0x3caea2 += _0x26f974 + ':',
_0x4bab96 < 0xa && (_0x3caea2 += '0'),
_0x3caea2 += _0x4bab96,
_0x3caea2;
}
var adminChatMenu2 = {
'html_container': null,
'html_title': null,
'html_sil': null,
'html_silHepsi': null,
'html_kick': null,
'html_ipBan': null,
'html_sohbetKapatBtn': null,
'html_sohbetKapatTxt': null,
'html_sohbetAc': null,
'html_kapat': null,
'chat_id': null,
'userId': 0x0,
'pid': 0x0,
'sil': function(_0x8a6ff6) {
var _0x18fc35 = _0x2a4b69
, _0x7af6ac = prepareData(0x5);
_0x7af6ac[_0x18fc35(0x260)](0x0, OPCODE_C2S_CHAT_REMOVE),
_0x7af6ac[_0x18fc35(0x3a4)](0x1, _0x8a6ff6),
wsSend(_0x7af6ac);
},
'init': function() {
var _0x27ddbf = _0x2a4b69;
this['html_container'] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x70)),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0xe6)][_0x27ddbf(0x324)] = _0x27ddbf(0x329),
this[_0x27ddbf(0x3ac)]['style'][_0x27ddbf(0x206)] = _0x27ddbf(0x3fc),
this['html_container'][_0x27ddbf(0xe6)][_0x27ddbf(0x15d)] = _0x27ddbf(0x272),
this[_0x27ddbf(0x3ac)]['style'][_0x27ddbf(0xef)] = _0x27ddbf(0x272),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0xe6)][_0x27ddbf(0x313)] = _0x27ddbf(0x1ee),
this[_0x27ddbf(0x3ac)]['style']['backgroundColor'] = '#00F',
this[_0x27ddbf(0x3ac)][_0x27ddbf(0xe6)]['display'] = _0x27ddbf(0x146),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0xe6)][_0x27ddbf(0x2ce)] = '10px',
this[_0x27ddbf(0x3ac)][_0x27ddbf(0xe6)]['fontSize'] = _0x27ddbf(0x3c6),
this[_0x27ddbf(0xf3)] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x1e8)),
this[_0x27ddbf(0xf3)]['type'] = _0x27ddbf(0x1f9),
this[_0x27ddbf(0xf3)]['value'] = _0x27ddbf(0x397),
this[_0x27ddbf(0xf3)][_0x27ddbf(0x189)] = function() {
var _0x34257d = _0x27ddbf;
this[_0x34257d(0x378)](this[_0x34257d(0x6f)]);
}
[_0x27ddbf(0x322)](this),
this['html_silHepsi'] = document[_0x27ddbf(0x2e0)]('INPUT'),
this[_0x27ddbf(0x3f5)]['type'] = _0x27ddbf(0x1f9),
this['html_silHepsi'][_0x27ddbf(0x1e9)] = _0x27ddbf(0x3f4),
this[_0x27ddbf(0x3f5)][_0x27ddbf(0x189)] = function() {
var _0x58a409 = _0x27ddbf
, _0x5ed4b7 = 0x0;
for (var _0x282102 of chatManager[_0x58a409(0x23d)]) {
_0x282102[_0x58a409(0x38d)] == this['userId'] && (setTimeout(this[_0x58a409(0x378)]['bind'](this, _0x282102[_0x58a409(0x6f)]), 0x64 * _0x5ed4b7),
_0x5ed4b7++);
}
}
['bind'](this),
this[_0x27ddbf(0x3a7)] = document[_0x27ddbf(0x2e0)]('INPUT'),
this[_0x27ddbf(0x3a7)][_0x27ddbf(0xae)] = _0x27ddbf(0x1f9),
this[_0x27ddbf(0x3a7)]['value'] = _0x27ddbf(0x38e),
this[_0x27ddbf(0x3a7)][_0x27ddbf(0x189)] = function() {
var _0x4b786d = _0x27ddbf;
console['log'](_0x4b786d(0x16b) + this[_0x4b786d(0x3c3)]),
kick_pid(this[_0x4b786d(0x3c3)]);
}
[_0x27ddbf(0x322)](this),
this[_0x27ddbf(0x3b0)] = document['createElement']('INPUT'),
this[_0x27ddbf(0x3b0)][_0x27ddbf(0xae)] = _0x27ddbf(0x1f9),
this[_0x27ddbf(0x3b0)][_0x27ddbf(0x1e9)] = _0x27ddbf(0x2a8),
this[_0x27ddbf(0x3b0)][_0x27ddbf(0x189)] = function() {
var _0x4886aa = _0x27ddbf;
console[_0x4886aa(0x323)](_0x4886aa(0x3c1) + this[_0x4886aa(0x3c3)]),
ipBan_pid(this[_0x4886aa(0x3c3)]);
}
[_0x27ddbf(0x322)](this),
this[_0x27ddbf(0x1aa)] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x1e8)),
this['html_sohbetKapatBtn'][_0x27ddbf(0xae)] = _0x27ddbf(0x1f9),
this[_0x27ddbf(0x1aa)][_0x27ddbf(0x1e9)] = _0x27ddbf(0xc8),
this[_0x27ddbf(0x1aa)]['onclick'] = function() {
var _0x32efee = _0x27ddbf
, _0x31cbeb = this[_0x32efee(0x2b5)][_0x32efee(0x1e9)];
isNumber(_0x31cbeb) && sohbetKapat(this['userId'], _0x31cbeb);
}
[_0x27ddbf(0x322)](this),
this[_0x27ddbf(0x2b5)] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x1e8)),
this[_0x27ddbf(0x2b5)][_0x27ddbf(0xae)] = _0x27ddbf(0xc3),
this['html_sohbetKapatTxt'][_0x27ddbf(0x1e9)] = '3',
this['html_sohbetKapatTxt'][_0x27ddbf(0x3f8)] = '2',
this[_0x27ddbf(0x2b5)]['maxLength'] = '2',
this['html_sohbetAc'] = document[_0x27ddbf(0x2e0)]('INPUT'),
this[_0x27ddbf(0x9f)][_0x27ddbf(0xae)] = _0x27ddbf(0x1f9),
this['html_sohbetAc'][_0x27ddbf(0x1e9)] = _0x27ddbf(0x28f),
this[_0x27ddbf(0x9f)][_0x27ddbf(0x189)] = function() {
sohbetAc(this['userId']);
}
[_0x27ddbf(0x322)](this),
this[_0x27ddbf(0x7a)] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x1e8)),
this[_0x27ddbf(0x7a)]['type'] = 'button',
this[_0x27ddbf(0x7a)][_0x27ddbf(0x1e9)] = _0x27ddbf(0x229),
this[_0x27ddbf(0x7a)][_0x27ddbf(0x189)] = function() {
var _0xc9580c = _0x27ddbf;
this[_0xc9580c(0xff)]();
}
['bind'](this),
this[_0x27ddbf(0xda)] = document[_0x27ddbf(0x2e0)](_0x27ddbf(0x70)),
this[_0x27ddbf(0xda)]['style'][_0x27ddbf(0x313)] = _0x27ddbf(0x135),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](this['html_title']),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](document[_0x27ddbf(0x2e0)]('BR')),
this['html_container'][_0x27ddbf(0x2d7)](this['html_sil']),
this[_0x27ddbf(0x3ac)]['appendChild'](document[_0x27ddbf(0x2e0)]('BR')),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](this[_0x27ddbf(0x3f5)]),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](document['createElement']('BR')),
ipdiscord_isAdmin == 0x1 && (this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](this[_0x27ddbf(0x3a7)]),
this['html_container'][_0x27ddbf(0x2d7)](document[_0x27ddbf(0x2e0)]('BR')),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](this['html_ipBan']),
this[_0x27ddbf(0x3ac)]['appendChild'](document[_0x27ddbf(0x2e0)]('BR'))),
this['html_container']['appendChild'](this[_0x27ddbf(0x1aa)]),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](this[_0x27ddbf(0x2b5)]),
ipdiscord_isAdmin == 0x1 && (this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](document[_0x27ddbf(0x2e0)]('BR')),
this['html_container'][_0x27ddbf(0x2d7)](this['html_sohbetAc'])),
this[_0x27ddbf(0x3ac)][_0x27ddbf(0x2d7)](document[_0x27ddbf(0x2e0)]('BR')),
this['html_container']['appendChild'](document[_0x27ddbf(0x2e0)]('BR')),
this[_0x27ddbf(0x3ac)]['appendChild'](this[_0x27ddbf(0x7a)]),
document[_0x27ddbf(0x2e3)][_0x27ddbf(0x2d7)](this[_0x27ddbf(0x3ac)]);
},
'show': function(_0x2efd3f, _0x3ec520, _0x32d289, _0x55bb61) {
var _0x570d2b = _0x2a4b69;
this['ip'] = '',
this['html_kick'][_0x570d2b(0xe6)][_0x570d2b(0x7b)] = 'none',
this[_0x570d2b(0x3b0)][_0x570d2b(0xe6)][_0x570d2b(0x7b)] = _0x570d2b(0x146),
playerInfoList[_0x570d2b(0x241)](function(_0x40e778, _0x299146) {
var _0x5b62f9 = _0x570d2b;
_0x40e778[_0x5b62f9(0x38d)] == _0x55bb61 && (console[_0x5b62f9(0x323)](_0x40e778),
this[_0x5b62f9(0x3c3)] = _0x40e778[_0x5b62f9(0x3a5)],
this[_0x5b62f9(0x3a7)][_0x5b62f9(0xe6)][_0x5b62f9(0x7b)] = 'inline-block',
this[_0x5b62f9(0x3b0)][_0x5b62f9(0xe6)][_0x5b62f9(0x7b)] = _0x5b62f9(0x1bb));
}
[_0x570d2b(0x322)](this)),
this[_0x570d2b(0x38d)] = _0x55bb61,
this[_0x570d2b(0x6f)] = _0x32d289,
this[_0x570d2b(0xda)]['innerHTML'] = _0x570d2b(0x185) + this[_0x570d2b(0x38d)] + '
İsim:' + _0x2efd3f + '
Mesaj:' + _0x3ec520,
this['html_container'][_0x570d2b(0xe6)][_0x570d2b(0x7b)] = _0x570d2b(0x12e);
},
'hide': function() {
var _0x11a05a = _0x2a4b69;
this[_0x11a05a(0x3ac)]['style'][_0x11a05a(0x7b)] = _0x11a05a(0x146);
}
}
, microphone = {
'mediaRecorder': null,
'playList': [],
'soundContainer': null,
'soundCheckBox': null,
'teamR': null,
'clanR': null,
'UI_talk': null,
'initRecord': function() {
var _0x36ced6 = _0x2a4b69;
navigator[_0x36ced6(0x1e0)][_0x36ced6(0x118)]({
'audio': !![]
})[_0x36ced6(0xea)](_0x453e72=>{
var _0x1b5ac8 = _0x36ced6;
this[_0x1b5ac8(0x3da)] = new MediaRecorder(_0x453e72),
this[_0x1b5ac8(0x3da)][_0x1b5ac8(0x277)](_0x1b5ac8(0x15b), _0x397d6c=>{
var _0x40e9a4 = _0x1b5ac8;
new Response(_0x397d6c[_0x40e9a4(0xa4)])[_0x40e9a4(0x233)]()['then'](_0xb0f85a=>{
var _0x3b6339 = _0x40e9a4
, _0xa504e3 = 0x0;
this['clanR'][_0x3b6339(0x246)] && (_0xa504e3 = 0x1);
var _0x15e8a0 = new Uint8Array(_0xb0f85a)
, _0x203b29 = new Uint8Array(_0xb0f85a['byteLength'] + 0x2);
_0x203b29[_0x3b6339(0xc5)](_0x15e8a0, 0x2);
var _0x50a58a = new DataView(_0x203b29['buffer']);
_0x50a58a[_0x3b6339(0x260)](0x0, OPCODE_C2S_TALK2),
_0x50a58a['setUint8'](0x1, _0xa504e3),
wsSend(_0x50a58a);
}
);
}
);
}
);
},
'chopper': function() {
var _0x4beb60 = _0x2a4b69;
this[_0x4beb60(0x3da)] != null && this[_0x4beb60(0x3da)]['state'] == _0x4beb60(0x80) && (this[_0x4beb60(0x3da)][_0x4beb60(0x13b)](),
this['mediaRecorder'][_0x4beb60(0x1a4)]());
},
'initChopper': function() {
var _0x179de9 = _0x2a4b69;
setInterval(this['chopper'][_0x179de9(0x322)](this), 0x3e8);
},
'startRecord': function() {
var _0x1f8e36 = _0x2a4b69;
this['mediaRecorder'] != null && this[_0x1f8e36(0x3da)]['state'] == _0x1f8e36(0xf4) && this[_0x1f8e36(0x3da)]['start']();
},
'stopRecord': function() {
var _0x2b94fb = _0x2a4b69;
this[_0x2b94fb(0x3da)] != null && this[_0x2b94fb(0x3da)][_0x2b94fb(0x27b)] == 'recording' && this['mediaRecorder'][_0x2b94fb(0x13b)]();
},
'drawPlayList': function() {
var _0x24dae8 = _0x2a4b69;
if (this['soundContainer'] == null)
return;
var _0x381357 = this['soundContainer']['getBoundingClientRect']()
, _0x447a35 = _0x381357[_0x24dae8(0x15d)]
, _0x12e91c = _0x381357[_0x24dae8(0xef)] - 0xa;
switch (renderMode) {
case RENDERMODE_CTX:
ctx[_0x24dae8(0x93)] = _0x24dae8(0x114),
ctx[_0x24dae8(0x3af)] = '20px\x20Ubuntu';
var _0x4fed58 = 0x0;
for (var _0x56dfbd = 0x0; _0x56dfbd < this[_0x24dae8(0x3db)][_0x24dae8(0x395)]; _0x56dfbd++) {
var _0x5e3b61 = this[_0x24dae8(0x3db)][_0x56dfbd];
_0x5e3b61[_0x24dae8(0x2c1)] == !![] ? (ctx['fillText'](_0x5e3b61[_0x24dae8(0x38d)] + '\x20' + _0x5e3b61[_0x24dae8(0x344)], _0x447a35, _0x12e91c - _0x4fed58 * 0x14),
_0x4fed58++) : this[_0x24dae8(0x3db)]['splice'](_0x56dfbd, 0x1);
}
break;
case RENDERMODE_GL:
var _0x4fed58 = 0x0;
for (var _0x56dfbd = 0x0; _0x56dfbd < this['playList'][_0x24dae8(0x395)]; _0x56dfbd++) {
var _0x5e3b61 = this['playList'][_0x56dfbd];
_0x5e3b61[_0x24dae8(0x2c1)] == !![] ? (prog_font[_0x24dae8(0x164)](_0x447a35, _0x12e91c - _0x4fed58 * 0x14, [0x1, 0x1, 0x0], 0x1, 0x14, _0x5e3b61[_0x24dae8(0x38d)] + '\x20' + _0x5e3b61['userName']),
_0x4fed58++) : this[_0x24dae8(0x3db)][_0x24dae8(0x1df)](_0x56dfbd, 0x1);
}
break;
}
},
'sendSoundOnOff': function(_0x496491) {
var _0x2bbeb8 = _0x2a4b69
, _0x1748ec = prepareData(0x2);
_0x1748ec['setUint8'](0x0, OPCODE_C2S_SOUND),
_0x1748ec[_0x2bbeb8(0x260)](0x1, _0x496491),
wsSend(_0x1748ec);
},
'sendSoundOnOff_fromUI': function() {
var _0x4f1675 = _0x2a4b69, _0x2d6e7b;
this['soundCheckBox'][_0x4f1675(0x246)] == !![] ? _0x2d6e7b = 0x1 : _0x2d6e7b = 0x1,
this[_0x4f1675(0x20c)](_0x2d6e7b);
},
'initHtml': function() {
var _0x5a53eb = _0x2a4b69;
this[_0x5a53eb(0x1ec)] = document[_0x5a53eb(0x19e)](_0x5a53eb(0x1ec));
if (this[_0x5a53eb(0x1ec)] == null) {
console[_0x5a53eb(0x323)](_0x5a53eb(0x293));
return;
}
var _0x2cac31 = document[_0x5a53eb(0x2e0)]('INPUT');
_0x2cac31[_0x5a53eb(0xae)] = _0x5a53eb(0x1f9),
_0x2cac31['value'] = trans[0x138],
_0x2cac31[_0x5a53eb(0x189)] = function() {
var _0x3922ff = _0x5a53eb;
this[_0x3922ff(0x2f5)](),
this[_0x3922ff(0x1ec)][_0x3922ff(0x16c)](_0x2cac31),
this[_0x3922ff(0x1ec)][_0x3922ff(0x2d7)](this[_0x3922ff(0x3a6)]),
this[_0x3922ff(0x1ec)][_0x3922ff(0x2d7)](_0xbac26f),
this['soundContainer'][_0x3922ff(0x2d7)](_0x43ae74);
}
[_0x5a53eb(0x322)](this),
this[_0x5a53eb(0x302)] = document[_0x5a53eb(0x2e0)](_0x5a53eb(0x1e8)),
this[_0x5a53eb(0x302)][_0x5a53eb(0xae)] = _0x5a53eb(0x3e0),
this[_0x5a53eb(0x302)]['value'] = _0x5a53eb(0xfc),
this['soundCheckBox'][_0x5a53eb(0x246)] = !![],
this['soundCheckBox']['onclick'] = function() {
var _0x366ce3 = _0x5a53eb, _0xb67221;
this[_0x366ce3(0x246)] == !![] ? _0xb67221 = 0x1 : _0xb67221 = 0x1,
sendSoundOnOff(_0xb67221);
}
;
var _0x5ae54e = document[_0x5a53eb(0x2e0)](_0x5a53eb(0x1d9));
_0x5ae54e[_0x5a53eb(0x2d7)](this[_0x5a53eb(0x302)]);
var _0x11d204 = document[_0x5a53eb(0x37e)](trans[0x136]);
_0x5ae54e[_0x5a53eb(0x2d7)](_0x11d204),
this[_0x5a53eb(0x145)] = document[_0x5a53eb(0x2e0)]('INPUT'),
this[_0x5a53eb(0x145)][_0x5a53eb(0xae)] = 'radio',
this[_0x5a53eb(0x145)][_0x5a53eb(0x1e9)] = _0x5a53eb(0x1b0),
this[_0x5a53eb(0x145)][_0x5a53eb(0x246)] = !![],
this['teamR']['onclick'] = function(_0x1d7f52) {
this['clanR']['checked'] = ![];
}
[_0x5a53eb(0x322)](this);
var _0xbac26f = document[_0x5a53eb(0x2e0)](_0x5a53eb(0x1d9));
_0xbac26f[_0x5a53eb(0x2d7)](this[_0x5a53eb(0x145)]),
_0xbac26f[_0x5a53eb(0x2d7)](document['createTextNode'](_0x5a53eb(0x380))),
this[_0x5a53eb(0x1d1)] = document['createElement'](_0x5a53eb(0x1e8)),
this[_0x5a53eb(0x1d1)][_0x5a53eb(0xae)] = 'radio',
this[_0x5a53eb(0x1d1)][_0x5a53eb(0x1e9)] = _0x5a53eb(0x278),
this[_0x5a53eb(0x1d1)][_0x5a53eb(0x189)] = function(_0x25a399) {
var _0x48ca80 = _0x5a53eb;
this['teamR'][_0x48ca80(0x246)] = ![];
}
[_0x5a53eb(0x322)](this);
var _0x43ae74 = document[_0x5a53eb(0x2e0)](_0x5a53eb(0x1d9));
_0x43ae74[_0x5a53eb(0x2d7)](this[_0x5a53eb(0x1d1)]),
_0x43ae74['appendChild'](document[_0x5a53eb(0x37e)](_0x5a53eb(0x2bb))),
this[_0x5a53eb(0x3a6)] = document['createElement'](_0x5a53eb(0x1e8)),
this[_0x5a53eb(0x3a6)]['type'] = _0x5a53eb(0x1f9),
this[_0x5a53eb(0x3a6)]['value'] = 'F\x20' + trans[0x137],
this[_0x5a53eb(0x3a6)][_0x5a53eb(0x17b)] = _0x5a53eb(0x113),
this[_0x5a53eb(0x3a6)][_0x5a53eb(0xa1)] = function() {
var _0x55e37a = _0x5a53eb;
this[_0x55e37a(0x2f1)](0x3e8);
}
['bind'](this),
this['UI_talk'][_0x5a53eb(0x98)] = function() {
var _0x221887 = _0x5a53eb;
this[_0x221887(0x23e)]();
}
['bind'](this),
this[_0x5a53eb(0x1ec)]['appendChild'](_0x5ae54e),
this[_0x5a53eb(0x1ec)][_0x5a53eb(0x2d7)](_0x2cac31);
},
's2c_voice': function(_0x3390fe, _0x54fdf0, _0x54191b) {
var _0x4d45bf = _0x2a4b69;
if (this[_0x4d45bf(0x302)][_0x4d45bf(0x246)] === ![])
return;
if (_0x54191b[_0x4d45bf(0x35d)] == 0x0)
return;
let _0x2db056 = new Blob([_0x54191b])
, _0x371d30 = window[_0x4d45bf(0x2c6)][_0x4d45bf(0x307)](_0x2db056);
var _0x4af4c9 = new Audio(_0x371d30)
, _0x3c8310 = {
'userId': _0x3390fe,
'userName': _0x54fdf0,
'live': !![],
'data': _0x4af4c9
};
this['playList']['push'](_0x3c8310),
_0x4af4c9[_0x4d45bf(0x13d)] = function(_0xd4d89d) {
var _0x4bcb33 = _0x4d45bf;
this[_0x4bcb33(0x2c1)] = ![];
}
[_0x4d45bf(0x322)](_0x3c8310),
_0x4af4c9[_0x4d45bf(0x7c)]();
}
};
microphone[_0x2a4b69(0x385)]();
function getLeaderboardExt(_0xf0365c) {
var _0x549f2a = _0x2a4b69;
for (var _0x3004d5 = 0x0; _0x3004d5 < leaderboard_ext[_0x549f2a(0x395)]; _0x3004d5++) {
if (leaderboard_ext[_0x3004d5][_0x549f2a(0x3a5)] == _0xf0365c)
return leaderboard_ext[_0x3004d5];
}
return null;
}
function drawLeaderboard() {
var _0x5de880 = _0x2a4b69
, _0x1525be = leaderBoard;
if (cellManager[_0x5de880(0xa7)] == DRAWMODE_REPLAY_PLAY || cellManager['drawMode'] == DRAWMODE_REPLAY_STOP) {
var _0x5c6243 = cellManager[_0x5de880(0x3f6)]();
_0x5c6243 != null && (_0x1525be = _0x5c6243[_0x5de880(0x25e)]);
}
var _0x480a1a;
isMobile ? _0x480a1a = 0xc : _0x480a1a = 0x10;
var _0xa4e3df;
isMobile ? _0xa4e3df = _0x1525be[_0x5de880(0x395)] < 0x5 ? _0x1525be[_0x5de880(0x395)] : 0x5 : _0xa4e3df = _0x1525be[_0x5de880(0x395)];
var _0x480b7b = _0x480a1a * 0xd, _0x24ddab = _0x480b7b * 0.5, _0x2dab2b = _0x480a1a * 0x4 + _0x480a1a * 1.2 * _0xa4e3df, _0x30810d = mainCanvas['width'] - _0x480b7b, _0x3945e5;
isMobile ? mainCanvas[_0x5de880(0x335)] > mainCanvas[_0x5de880(0x326)] ? _0x3945e5 = 0x0 : _0x3945e5 = 0x96 : _0x3945e5 = 0x0;
var _0x225f80 = 0.3;
switch (renderMode) {
case RENDERMODE_CTX:
var _0x44bdd5 = ctx['fillStyle'];
ctx[_0x5de880(0x111)] = _0x225f80,
ctx[_0x5de880(0x93)] = ColorManager['Current'][_0x5de880(0xaa)],
ctx[_0x5de880(0x1c1)](_0x30810d, _0x3945e5, _0x480b7b, _0x2dab2b),
ctx[_0x5de880(0x111)] = 0x1,
ctx[_0x5de880(0x93)] = ColorManager[_0x5de880(0x163)][_0x5de880(0x3ad)],
ctx['font'] = _0x480a1a + _0x5de880(0x3b9),
ctx[_0x5de880(0x2a2)](lastWinner, _0x30810d + _0x24ddab - ctx['measureText'](lastWinner)['width'] / 0x2, _0x3945e5 + _0x480a1a * 0x2);
var _0x3c3536 = 0x0;
for (let _0x547929 = 0x0; _0x547929 < _0xa4e3df; _0x547929++) {
let _0x28da20 = _0x1525be[_0x547929]
, _0xb550ee = _0x5de880(0x342);
_0x28da20[_0x5de880(0x101)] != null && (_0xb550ee = _0x28da20['name'][_0x5de880(0x1db)](),
_0xb550ee == '' && (_0xb550ee = 'AgarZ.com'));
let _0x3f3427;
!noRanking ? _0x3f3427 = '' + (_0x547929 + 0x1) + '.\x20' + _0xb550ee : _0x3f3427 = _0xb550ee;
let _0x1252fb = ctx['measureText'](_0x3f3427)['width'];
if (_0x28da20['id'] == spectatorId)
ctx[_0x5de880(0x93)] = ColorManager[_0x5de880(0x163)][_0x5de880(0x2eb)];
else {
if (_0x28da20['id'] == playerId)
ctx['fillStyle'] = ColorManager[_0x5de880(0x163)][_0x5de880(0x3fe)];
else {
ctx['fillStyle'] = ColorManager[_0x5de880(0x163)][_0x5de880(0x1f1)];
var _0x12b996 = getLeaderboardExt(_0x28da20['id']);
if (_0x12b996 != null) {
if (_0x12b996[_0x5de880(0x11d)] == 0x1)
ctx[_0x5de880(0x93)] = ColorManager['Current']['Name_SameTeamOnList'];
else
_0x12b996[_0x5de880(0xdb)] == 0x1 && (ctx[_0x5de880(0x93)] = ColorManager['Current'][_0x5de880(0x9d)]);
}
}
}
_0x3c3536 = _0x3945e5 + _0x480a1a * 0x4 + _0x480a1a * 1.2 * _0x547929,
_0x28da20[_0x5de880(0xe4)] = mainCanvas[_0x5de880(0x335)] - _0x480b7b + _0x24ddab - _0x1252fb / 0x2,
_0x28da20['draw_y'] = _0x3c3536,
_0x28da20[_0x5de880(0x31f)] = _0x1252fb,
_0x28da20['draw_h'] = _0x480a1a,
ctx['fillText'](_0x3f3427, _0x28da20[_0x5de880(0xe4)], _0x28da20[_0x5de880(0x28c)]);
}
if (leaderboardIndex >= _0xa4e3df && playMode == PLAYMODE_PLAY) {
let _0x4a6932 = leaderboardIndex + 0x1 + '.\x20' + playerName
, _0xa5cc91 = ctx[_0x5de880(0x24e)](_0x4a6932)[_0x5de880(0x335)]
, _0x54cae2 = mainCanvas['width'] - _0x480b7b + _0x24ddab - _0xa5cc91 / 0x2;
_0x3c3536 += _0x480a1a,
ctx['fillStyle'] = ColorManager[_0x5de880(0x163)][_0x5de880(0x3fe)],
ctx[_0x5de880(0x2a2)](_0x4a6932, _0x54cae2, _0x3c3536);
}
ctx['fillStyle'] = _0x44bdd5;
break;
case RENDERMODE_GL:
prog_rect[_0x5de880(0x1e5)](_0x30810d, _0x3945e5, _0x480b7b, _0x2dab2b, ColorManager['Current_RGB_GL'][_0x5de880(0xaa)], 0.8);
var _0x230347 = _0x30810d + _0x24ddab - prog_font[_0x5de880(0x1fe)](lastWinner) * _0x480a1a / 0x2
, _0x465633 = _0x3945e5 + _0x480a1a * 0x2;
prog_font['drawUI'](_0x230347, _0x465633, ColorManager[_0x5de880(0x1da)][_0x5de880(0x3ad)], 0x1, _0x480a1a, lastWinner);
var _0x3c3536 = 0x0;
for (let _0x2d5814 = 0x0; _0x2d5814 < _0xa4e3df; _0x2d5814++) {
let _0x53a092 = _0x1525be[_0x2d5814]
, _0x5af452 = 'AgarZ.com';
_0x53a092[_0x5de880(0x101)] != null && (_0x5af452 = _0x53a092[_0x5de880(0x101)][_0x5de880(0x1db)](),
_0x5af452 == '' && (_0x5af452 = _0x5de880(0x342)));
let _0x4630d4;
!noRanking ? _0x4630d4 = '' + (_0x2d5814 + 0x1) + '.\x20' + _0x5af452 : _0x4630d4 = _0x5af452;
let _0x476690 = prog_font[_0x5de880(0x1fe)](_0x4630d4) * _0x480a1a, _0x19f02b;
if (_0x53a092['id'] == spectatorId)
_0x19f02b = ColorManager[_0x5de880(0x1da)][_0x5de880(0x2eb)];
else {
if (_0x53a092['id'] == playerId)
_0x19f02b = ColorManager['Current_RGB_GL'][_0x5de880(0x3fe)];
else {
_0x19f02b = ColorManager['Current_RGB_GL']['Leaderboard_Default'];
var _0x12b996 = getLeaderboardExt(_0x53a092['id']);
if (_0x12b996 != null) {
if (_0x12b996['sameTeam'] == 0x1)
_0x19f02b = ColorManager[_0x5de880(0x1da)][_0x5de880(0x3c9)];
else
_0x12b996[_0x5de880(0xdb)] == 0x1 && (_0x19f02b = ColorManager[_0x5de880(0x1da)][_0x5de880(0x9d)]);
}
}
}
_0x3c3536 = _0x3945e5 + _0x480a1a * 0x4 + _0x480a1a * 1.2 * _0x2d5814,
_0x53a092[_0x5de880(0xe4)] = mainCanvas[_0x5de880(0x335)] - _0x480b7b + _0x24ddab - _0x476690 / 0x2,
_0x53a092[_0x5de880(0x28c)] = _0x3c3536,
_0x53a092[_0x5de880(0x31f)] = _0x476690,
_0x53a092['draw_h'] = _0x480a1a,
prog_font[_0x5de880(0x164)](_0x53a092['draw_x'], _0x53a092[_0x5de880(0x28c)], _0x19f02b, 0x1, _0x480a1a, _0x4630d4);
}
break;
}
}
function Cell(_0x22baf1, _0x2f139f, _0x4f8c0d, _0x4a0233, _0x2c8b4a, _0x2e0339, _0x418065) {
var _0x3594aa = _0x2a4b69;
this['id'] = _0x22baf1,
this[_0x3594aa(0x3e2)] = _0x2f139f,
this['x_draw'] = _0x2f139f,
this['x_new'] = _0x2f139f,
this['y_old'] = _0x4f8c0d,
this[_0x3594aa(0x320)] = _0x4f8c0d,
this['y_new'] = _0x4f8c0d,
this[_0x3594aa(0x2b4)] = _0x4a0233,
this[_0x3594aa(0xe9)] = _0x4a0233,
this[_0x3594aa(0x21a)] = _0x4a0233,
this[_0x3594aa(0x313)] = _0x2c8b4a,
this[_0x3594aa(0x2e4)] = _0x2e0339,
this['rgb_gl'] = [],
this['make_rgb_gl'](),
this['points'] = [],
this[_0x3594aa(0xf9)] = [],
this[_0x3594aa(0x101)] = _0x418065,
this[_0x3594aa(0x12d)] = new Date()[_0x3594aa(0x20a)]();
}
Cell[_0x2a4b69(0x219)] = {
'id': 0x0,
'pID': 0x0,
'points': null,
'pointsAdd': null,
'name': null,
'nameWidth': 0x0,
'skinName': null,
'skinList': [],
'skinIndex': 0x0,
'x_draw': 0x0,
'y_draw': 0x0,
'size_draw': 0x0,
'x_old': 0x0,
'y_old': 0x0,
'size_old': 0x0,
'x_new': 0x0,
'y_new': 0x0,
'size_new': 0x0,
'scoreWidth': 0x0,
'cellType': 0x0,
'fancy': null,
'updateTime': 0x0,
'tailDbg': [],
'nodeDbg': [],
'updateCounter': 0x0,
'createTime': new Date()[_0x2a4b69(0x20a)](),
'make_rgb_gl': function() {
var _0x4d2e70 = _0x2a4b69;
this[_0x4d2e70(0x2e4)] != null && this[_0x4d2e70(0x2e4)][_0x4d2e70(0x395)] == 0x3 && (this[_0x4d2e70(0x3a2)] = [this[_0x4d2e70(0x2e4)][0x0] / 0xff, this[_0x4d2e70(0x2e4)][0x1] / 0xff, this[_0x4d2e70(0x2e4)][0x2] / 0xff]);
},
'destroy': function() {
var _0x1a88c0 = _0x2a4b69;
cellManager[_0x1a88c0(0x3ea)](this);
},
'getNameSize': function() {
var _0x5bb0f1 = _0x2a4b69;
return Math[_0x5bb0f1(0x35a)](~~(0.3 * this[_0x5bb0f1(0x2b4)]), 0x18);
},
'calcNameWidth': function() {
var _0x26b50c = _0x2a4b69;
switch (renderMode) {
case RENDERMODE_CTX:
ctx[_0x26b50c(0x3af)] = this[_0x26b50c(0x12c)]() + _0x26b50c(0x3b9),
this['nameWidth'] = ctx[_0x26b50c(0x24e)](this['name'])[_0x26b50c(0x335)];
break;
case RENDERMODE_GL:
this['nameWidth'] = prog_font[_0x26b50c(0x1fe)](this[_0x26b50c(0x101)]) * this[_0x26b50c(0x12c)]();
break;
}
},
'calcScoreWidth': function(_0x26c540) {
var _0x12f85b = _0x2a4b69;
_0x26c540[_0x12f85b(0x3af)] = this['getNameSize']() + _0x12f85b(0x3b9),
this['scoreWidth'] = _0x26c540[_0x12f85b(0x24e)](this[_0x12f85b(0x1b2)]())[_0x12f85b(0x335)];
},
'setSkinName': function(_0xa393a7) {
var _0x5d390f = _0x2a4b69;
this[_0x5d390f(0x182)] = _0xa393a7[_0x5d390f(0x1c9)](';'),
this[_0x5d390f(0x2c2)] = this[_0x5d390f(0x182)][this[_0x5d390f(0x3aa)]];
},
'changeSkin': function() {
var _0x4ec0fd = _0x2a4b69;
this['skinList'][0x0] == '?k' ? this[_0x4ec0fd(0x3aa)] = (changeSkinCounter + this['id']) % (this[_0x4ec0fd(0x182)][_0x4ec0fd(0x395)] - 0x1) + 0x1 : this[_0x4ec0fd(0x3aa)] = changeSkinCounter % this[_0x4ec0fd(0x182)]['length'];
},
'createPoints': function(_0x194720) {
var _0x41f968 = _0x2a4b69;
for (var _0x5019a3 = 0x0; _0x5019a3 < this[_0x41f968(0x18a)][_0x41f968(0x3b5)]; _0x5019a3++) {
this['points'][_0x41f968(0x328)]({
'size': this[_0x41f968(0xe9)],
'x': this[_0x41f968(0x2e6)],
'y': this['y_new']
}),
this['pointsAdd'][_0x41f968(0x328)](Math[_0x41f968(0x169)]() - 0.5);
}
},
'movePoints': function() {
var _0x14b864 = _0x2a4b69;
for (i = 0x0; i < this['pointsAdd'][_0x14b864(0x395)]; ++i) {
var _0x2319a8 = this[_0x14b864(0xf9)][(i - 0x1 + this[_0x14b864(0xf9)][_0x14b864(0x395)]) % this[_0x14b864(0xf9)][_0x14b864(0x395)]]
, _0x18fd5a = this['pointsAdd'][(i + 0x1) % this[_0x14b864(0xf9)][_0x14b864(0x395)]];
this[_0x14b864(0xf9)][i] += (Math[_0x14b864(0x169)]() - 0.5) * this['fancy'][_0x14b864(0x3d4)];
if (this['pointsAdd'][i] > this['fancy'][_0x14b864(0x165)])
this[_0x14b864(0xf9)][i] = this[_0x14b864(0x18a)][_0x14b864(0x165)];
else
this['pointsAdd'][i] < -this[_0x14b864(0x18a)][_0x14b864(0x165)] && (this[_0x14b864(0xf9)][i] = -this[_0x14b864(0x18a)][_0x14b864(0x165)]);
this[_0x14b864(0xf9)][i] = (_0x2319a8 + _0x18fd5a + this[_0x14b864(0x18a)][_0x14b864(0x154)] * this[_0x14b864(0xf9)][i]) / (this['fancy'][_0x14b864(0x154)] + 0x2);
}
var _0x37f1e1 = 0x2 * Math['PI'] / this[_0x14b864(0x3b1)][_0x14b864(0x395)];
for (j = 0x0; j < this[_0x14b864(0x3b1)][_0x14b864(0x395)]; ++j) {
var _0x5b9cfc = this[_0x14b864(0x3b1)][j][_0x14b864(0x3f8)] + this[_0x14b864(0xf9)][j]
, _0x53b93f = 0x0;
this[_0x14b864(0x2ad)] == CELLTYPE_VIRUS || this[_0x14b864(0x2ad)] == CELLTYPE_RED_VIRUS ? (_0x53b93f = 0x0,
j % this['fancy'][_0x14b864(0xbe)] == 0x0 && (_0x5b9cfc += this['fancy'][_0x14b864(0x201)])) : _0x53b93f = (this['id'] / 0x3e8 + timestamp / 0x2710) % (0x2 * Math['PI']),
this['points'][j][_0x14b864(0x394)] = this[_0x14b864(0x394)] + Math[_0x14b864(0x75)](_0x37f1e1 * j + _0x53b93f) * _0x5b9cfc,
this[_0x14b864(0x3b1)][j]['y_draw'] = this[_0x14b864(0x320)] + Math[_0x14b864(0x356)](_0x37f1e1 * j + _0x53b93f) * _0x5b9cfc;
}
},
'updatePos': function() {
var _0x1e847b = _0x2a4b69, _0x5c104d = new Date()[_0x1e847b(0x20a)]() - updateNodes2_last, _0x3a3e51;
options[_0x1e847b(0x197)](_0x1e847b(0x170)) == !![] ? _0x3a3e51 = _0x5c104d / updateNodes2_span : _0x3a3e51 = (timestamp - this[_0x1e847b(0x166)]) / 0x78;
if (_0x3a3e51 < 0x0)
_0x3a3e51 = 0x0;
else
_0x3a3e51 > 0x1 && (_0x3a3e51 = 0x1);
this[_0x1e847b(0x394)] = _0x3a3e51 * (this[_0x1e847b(0x2e6)] - this[_0x1e847b(0x3e2)]) + this[_0x1e847b(0x3e2)],
this['y_draw'] = _0x3a3e51 * (this[_0x1e847b(0x315)] - this[_0x1e847b(0x149)]) + this[_0x1e847b(0x149)],
this[_0x1e847b(0xe9)] = _0x3a3e51 * (this[_0x1e847b(0x21a)] - this[_0x1e847b(0x2b4)]) + this[_0x1e847b(0x2b4)],
debug_pos == 0x1 && this[_0x1e847b(0x281)][_0x1e847b(0x328)]({
'x': this['x_draw'],
'y': this[_0x1e847b(0x320)],
'r': _0x3a3e51,
's': _0x5c104d,
'ns': updateNodes2_span
}),
this[_0x1e847b(0x281)][_0x1e847b(0x395)] > 0x3e8 && this[_0x1e847b(0x281)][_0x1e847b(0x8f)]();
},
'getScore': function() {
var _0x10ff2c = _0x2a4b69
, _0x11aab8 = ~~(this[_0x10ff2c(0x21a)] * this[_0x10ff2c(0x21a)] / 0x64);
return _0x11aab8;
},
'drawSimple': function(_0x1d471b) {
var _0x41b7c2 = _0x2a4b69;
this[_0x41b7c2(0xe9)] <= 0x0 ? console['log'](_0x41b7c2(0x317) + this[_0x41b7c2(0xe9)]) : (_0x1d471b[_0x41b7c2(0x3d0)](),
_0x1d471b[_0x41b7c2(0x2cd)](this['x_draw'], this[_0x41b7c2(0x320)], this[_0x41b7c2(0xe9)], 0x0, 0x2 * Math['PI'], ![]));
},
'drawFancy': function(_0x18e179) {
var _0x6cb86d = _0x2a4b69;
_0x18e179['lineWidth'] = this[_0x6cb86d(0x18a)][_0x6cb86d(0x1fa)],
_0x18e179[_0x6cb86d(0x400)] = _0x6cb86d(0x25d),
_0x18e179[_0x6cb86d(0x2bc)] = this[_0x6cb86d(0x18a)][_0x6cb86d(0x2bc)],
_0x18e179[_0x6cb86d(0x3d0)](),
_0x18e179[_0x6cb86d(0xbd)](this[_0x6cb86d(0x3b1)][0x0]['x_draw'], this['points'][0x0][_0x6cb86d(0x320)]);
for (var _0x48ff7a = 0x1; _0x48ff7a < this[_0x6cb86d(0x3b1)][_0x6cb86d(0x395)]; _0x48ff7a++) {
_0x18e179[_0x6cb86d(0x90)](this['points'][_0x48ff7a][_0x6cb86d(0x394)], this[_0x6cb86d(0x3b1)][_0x48ff7a]['y_draw']);
}
_0x18e179[_0x6cb86d(0x358)]();
},
'isDrawSkin': function() {
var _0x529cb9 = _0x2a4b69;
return options['get']('showSkin') && this[_0x529cb9(0x2c2)] != '' && this['skinName'] != null;
},
'isDrawName': function() {
var _0x33341e = _0x2a4b69;
return options[_0x33341e(0x197)]('showName') && this['name'] || this[_0x33341e(0x3a5)] == playerId;
},
'getClanName': function() {
var _0x54059b = _0x2a4b69
, _0x7f9ff2 = playerInfoList[this[_0x54059b(0x3a5)]];
return _0x7f9ff2 != null && _0x7f9ff2['clan_status'] > 0x0 ? clanNameList[_0x7f9ff2[_0x54059b(0x377)]] : null;
},
'isDrawClan': function() {
var _0x335e20 = _0x2a4b69;
if (options['get'](_0x335e20(0xc0))) {
var _0x8c43c6 = this[_0x335e20(0x228)]();
return _0x8c43c6 != null;
}
return ![];
},
'isDrawScore': function() {
var _0x3c8968 = _0x2a4b69;
return options[_0x3c8968(0x197)]('showScore') == !![];
},
'isDrawUID': function() {
var _0x166b68 = _0x2a4b69;
return demo == 0x0 && isAdminSafe() && spectatorPlayer != null && spectatorPlayer[_0x166b68(0x3c3)] == this[_0x166b68(0x3a5)];
},
'drawOneCell_player_ctx': function() {
var _0x4da89a = _0x2a4b69;
options['get'](_0x4da89a(0x2ba)) == !![] ? ctx[_0x4da89a(0x111)] = 0.6 : ctx[_0x4da89a(0x111)] = 0x1;
if (this[_0x4da89a(0x281)][_0x4da89a(0x395)] > 0x0) {
ctx['strokeStyle'] = _0x4da89a(0x381),
ctx['lineWidth'] = 0x1;
for (var _0x1851f8 = 0x0; _0x1851f8 < this[_0x4da89a(0x281)][_0x4da89a(0x395)]; _0x1851f8++) {
ctx[_0x4da89a(0x7f)] = _0x4da89a(0x17d),
ctx[_0x4da89a(0x3d0)](),
ctx[_0x4da89a(0x2cd)](this[_0x4da89a(0x281)][_0x1851f8]['x'], this[_0x4da89a(0x281)][_0x1851f8]['y'], 0x5, 0x0, 0x2 * Math['PI'], ![]),
ctx[_0x4da89a(0x375)]();
}
}
if (this[_0x4da89a(0x1f7)][_0x4da89a(0x395)] > 0x0) {
ctx['strokeStyle'] = '#FF0000',
ctx[_0x4da89a(0x1fa)] = 0x1;
for (var _0x1851f8 = 0x0; _0x1851f8 < this[_0x4da89a(0x1f7)][_0x4da89a(0x395)]; _0x1851f8++) {
ctx[_0x4da89a(0x3d0)](),
ctx[_0x4da89a(0x2cd)](this[_0x4da89a(0x1f7)][_0x1851f8]['x'], this[_0x4da89a(0x1f7)][_0x1851f8]['y'], 0x6, 0x0, 0x2 * Math['PI'], ![]),
ctx[_0x4da89a(0x375)]();
}
}
ctx[_0x4da89a(0x93)] = this[_0x4da89a(0x313)],
this[_0x4da89a(0x303)](ctx),
ctx[_0x4da89a(0x2e5)]();
if (this['isDrawSkin']()) {
var _0x378640 = _0x4da89a(0xfa) + this[_0x4da89a(0x2c2)];
skins[_0x4da89a(0x24c)](this[_0x4da89a(0x2c2)]) == ![] && (skins[this[_0x4da89a(0x2c2)]] = new Image(),
skins[this[_0x4da89a(0x2c2)]][_0x4da89a(0x2dc)] = _0x378640,
skins[this[_0x4da89a(0x2c2)]][_0x4da89a(0x2dc)]['endsWith'](_0x4da89a(0x1a5)) === ![] && (skins[this['skinName']][_0x4da89a(0x2dc)] += _0x4da89a(0x1a5)),
skins[this[_0x4da89a(0x2c2)]][_0x4da89a(0x237)] = function() {
var _0x5ba115 = _0x4da89a;
skinsLoaded[this[_0x5ba115(0x2c2)]] = !![];
}
[_0x4da89a(0x322)](this));
if (skinsLoaded[_0x4da89a(0x24c)](this['skinName'])) {
var _0x284df0 = skins[this[_0x4da89a(0x2c2)]];
ctx[_0x4da89a(0x33b)](),
ctx[_0x4da89a(0x2f7)](),
ctx[_0x4da89a(0x232)](_0x284df0, this[_0x4da89a(0x394)] - this[_0x4da89a(0xe9)], this[_0x4da89a(0x320)] - this[_0x4da89a(0xe9)], 0x2 * this[_0x4da89a(0xe9)], 0x2 * this[_0x4da89a(0xe9)]),
ctx['restore']();
var _0x59c92b = playerInfoList[this[_0x4da89a(0x3a5)]];
_0x59c92b != null && _0x59c92b[_0x4da89a(0x38d)] == record_uid && record_uid != 0x0 && ctx[_0x4da89a(0x232)](crownImage, this[_0x4da89a(0x394)] - this[_0x4da89a(0xe9)] * 0.5, this[_0x4da89a(0x320)] - this[_0x4da89a(0xe9)] * 0x2, this[_0x4da89a(0xe9)], this[_0x4da89a(0xe9)]);
}
}
ctx['globalAlpha'] = 0x1;
var _0x4d0f58 = ColorManager[_0x4da89a(0x163)][_0x4da89a(0x288)];
if (this['pID'] == playerId)
_0x4d0f58 = ColorManager[_0x4da89a(0x163)][_0x4da89a(0x288)];
else {
var _0x458f2d = getLeaderboardExt(this[_0x4da89a(0x3a5)]);
if (_0x458f2d == null)
_0x4d0f58 = ColorManager[_0x4da89a(0x163)][_0x4da89a(0x288)];
else {
if (_0x458f2d['sameTeam'] == 0x1)
_0x4d0f58 = ColorManager[_0x4da89a(0x163)]['Name_SameTeamOnList'];
else
_0x458f2d[_0x4da89a(0xdb)] == 0x1 && (_0x4d0f58 = ColorManager[_0x4da89a(0x163)][_0x4da89a(0x9d)]);
}
}
ctx[_0x4da89a(0x93)] = _0x4d0f58;
if (this[_0x4da89a(0x34c)]()) {
ctx['font'] = this[_0x4da89a(0x12c)]() + 'px\x20Ubuntu',
this[_0x4da89a(0x133)](ctx);
var _0x494d15 = this[_0x4da89a(0x394)] - this[_0x4da89a(0x2ab)] * 0.5;
ctx['fillText'](this[_0x4da89a(0x101)], _0x494d15, this['y_draw']);
}
if (this[_0x4da89a(0x121)]()) {
var _0x2bb92b = this[_0x4da89a(0x228)]()
, _0x55d4d6 = Math[_0x4da89a(0x17c)](this['getNameSize']() * 0.5);
ctx[_0x4da89a(0x3af)] = _0x55d4d6 + 'px\x20Ubuntu';
var _0x579b10 = ctx[_0x4da89a(0x24e)](_0x2bb92b)[_0x4da89a(0x335)]
, _0x494d15 = this[_0x4da89a(0x394)] - _0x579b10 * 0.5;
ctx[_0x4da89a(0x2a2)](_0x2bb92b, _0x494d15, this[_0x4da89a(0x320)] - _0x55d4d6 * 0x2);
}
if (this[_0x4da89a(0xc2)]()) {
ctx['font'] = this[_0x4da89a(0x12c)]() + _0x4da89a(0x3b9);
var _0xab03f2 = this['getScore']()
, _0x42b45f = _0xab03f2['dotFormat']()
, _0x494d15 = this[_0x4da89a(0x394)] - this['scoreWidth'] * 0.5;
ctx[_0x4da89a(0x2a2)](_0x42b45f, _0x494d15, this[_0x4da89a(0x320)] + this[_0x4da89a(0x12c)]());
}
if (this[_0x4da89a(0x239)]()) {
ctx[_0x4da89a(0x3af)] = this[_0x4da89a(0x12c)]() + 'px\x20Ubuntu';
var _0x42b45f = spectatorPlayer[_0x4da89a(0x127)]
, _0x5912fa = ctx[_0x4da89a(0x24e)](_0x42b45f)[_0x4da89a(0x335)]
, _0x494d15 = this[_0x4da89a(0x394)] - _0x5912fa * 0.5;
ctx['fillText'](_0x42b45f, _0x494d15, this[_0x4da89a(0x320)] - this[_0x4da89a(0x12c)]());
}
},
'drawOneCell_player_gl': function() {
var _0x419409 = _0x2a4b69;
this['isDrawSkin']() ? (textureSkin[_0x419409(0x197)](this[_0x419409(0x2c2)]) == null && textureSkin['load'](this['skinName']),
textureSkin['isReady'](this[_0x419409(0x2c2)]) ? (textureSkin[_0x419409(0x322)](this['skinName']),
prog_cell[_0x419409(0x1e5)](this, prog_cell['DRAW_MODE_TEXTURE'])) : prog_cell[_0x419409(0x1e5)](this, prog_cell[_0x419409(0x3bd)])) : prog_cell['draw'](this, prog_cell['DRAW_MODE_COLOR']);
var _0x13b038 = ColorManager[_0x419409(0x1da)][_0x419409(0x288)];
if (this['pID'] == playerId)
_0x13b038 = ColorManager['Current_RGB_GL']['Name_Default'];
else {
var _0x312964 = getLeaderboardExt(this['pID']);
if (_0x312964 == null)
_0x13b038 = ColorManager[_0x419409(0x1da)][_0x419409(0x288)];
else {
if (_0x312964[_0x419409(0x11d)] == 0x1)
_0x13b038 = ColorManager[_0x419409(0x1da)][_0x419409(0x3c9)];
else
_0x312964[_0x419409(0xdb)] == 0x1 && (_0x13b038 = ColorManager[_0x419409(0x1da)]['Name_SameClanOnList']);
}
}
this['isDrawName']() && prog_font[_0x419409(0x36f)](this[_0x419409(0x394)], this[_0x419409(0x320)], _0x13b038, 0x1, this[_0x419409(0x12c)](), this[_0x419409(0x101)]);
if (this['isDrawClan']()) {
var _0x1e4a8c = this['getClanName']()
, _0x361747 = Math[_0x419409(0x17c)](this[_0x419409(0x12c)]() * 0.5);
prog_font[_0x419409(0x36f)](this[_0x419409(0x394)], this[_0x419409(0x320)] - _0x361747 * 0x2, _0x13b038, 0x1, _0x361747, _0x1e4a8c);
}
if (this[_0x419409(0xc2)]()) {
var _0x1f56e2 = this[_0x419409(0x1b2)]()[_0x419409(0x287)]()
, _0x361747 = this[_0x419409(0x12c)]();
prog_font[_0x419409(0x36f)](this[_0x419409(0x394)], this[_0x419409(0x320)] + _0x361747, _0x13b038, 0x1, _0x361747, _0x1f56e2);
}
if (this[_0x419409(0x239)]()) {
var _0x361747 = this[_0x419409(0x12c)]()
, _0x79c71b = spectatorPlayer[_0x419409(0x127)][_0x419409(0x287)]() + '';
prog_font['drawGame'](this[_0x419409(0x394)], this['y_draw'] - _0x361747 * 1.5, _0x13b038, 0x1, _0x361747, _0x79c71b);
}
},
'drawOneCell_food_ctx': function() {
var _0x2c9c0d = _0x2a4b69;
opt_drawFoods == !![] && (ctx[_0x2c9c0d(0x93)] = this[_0x2c9c0d(0x313)],
ctx[_0x2c9c0d(0x7f)] = this[_0x2c9c0d(0x313)],
this['drawSimple'](ctx),
ctx['fill']());
},
'drawOneCell_food_gl': function() {
var _0x1c9fa0 = _0x2a4b69;
prog_cell[_0x1c9fa0(0x1e5)](this, prog_cell[_0x1c9fa0(0x3bd)]);
},
'drawOneCell_virus_ctx': function() {
var _0x128974 = _0x2a4b69;
options[_0x128974(0x197)]('transparentRender') == !![] ? ctx['globalAlpha'] = 0.3 : ctx[_0x128974(0x111)] = 0x1;
var _0x271295 = fpsManager[_0x128974(0x362)]();
ctx[_0x128974(0x93)] = this[_0x128974(0x313)],
ctx[_0x128974(0x7f)] = ColorManager[_0x128974(0x163)][_0x128974(0x196)],
options[_0x128974(0x197)]('simpleGreen') == !![] || _0x271295 > drawFancyTimeLimit ? (this['drawSimple'](ctx),
ctx[_0x128974(0x2e5)](),
ctx[_0x128974(0x1fa)] = 0xa,
ctx['stroke']()) : (this[_0x128974(0x3c5)](),
this['drawFancy'](ctx),
ctx['stroke'](),
ctx[_0x128974(0x2e5)]());
},
'drawOneCell_virus_gl': function() {
var _0x500f4d = _0x2a4b69;
prog_cell[_0x500f4d(0x1e5)](this, prog_cell[_0x500f4d(0x3bd)]);
},
'drawOneCell_ejected_ctx': function() {
var _0x1fc0c1 = _0x2a4b69;
ctx[_0x1fc0c1(0x93)] = this[_0x1fc0c1(0x313)],
ctx['strokeStyle'] = this[_0x1fc0c1(0x313)],
this[_0x1fc0c1(0x303)](ctx),
ctx[_0x1fc0c1(0x2e5)]();
},
'drawOneCell_ejected_gl': function() {
var _0x19d57e = _0x2a4b69;
prog_cell[_0x19d57e(0x1e5)](this, prog_cell[_0x19d57e(0x3bd)]);
},
'drawOneCell_redVirus_ctx': function() {
var _0x511be7 = _0x2a4b69;
options[_0x511be7(0x197)]('transparentRender') == !![] ? ctx[_0x511be7(0x111)] = 0.3 : ctx['globalAlpha'] = 0x1;
var _0x77f783 = fpsManager[_0x511be7(0x362)]();
ctx[_0x511be7(0x93)] = this[_0x511be7(0x313)],
ctx['strokeStyle'] = ColorManager[_0x511be7(0x163)]['RedVirus_Line'],
options['get'](_0x511be7(0x9e)) == !![] || _0x77f783 > drawFancyTimeLimit ? (this[_0x511be7(0x303)](ctx),
ctx[_0x511be7(0x2e5)](),
ctx[_0x511be7(0x1fa)] = 0xa,
ctx[_0x511be7(0x375)]()) : (this[_0x511be7(0x3c5)](),
this[_0x511be7(0x1fd)](ctx),
ctx[_0x511be7(0x375)](),
ctx[_0x511be7(0x2e5)]());
},
'drawOneCell_gold_ctx': function() {
var _0x5e46b8 = _0x2a4b69;
ctx['fillStyle'] = ColorManager[_0x5e46b8(0x163)][_0x5e46b8(0x12f)],
this[_0x5e46b8(0x1fd)](ctx),
ctx[_0x5e46b8(0x2e5)]();
},
'drawOneCell': function() {
var _0x54edcd = _0x2a4b69;
switch (this[_0x54edcd(0x2ad)]) {
case CELLTYPE_PLAYER:
switch (renderMode) {
case RENDERMODE_CTX:
this[_0x54edcd(0x382)]();
break;
case RENDERMODE_GL:
this[_0x54edcd(0xa8)]();
break;
case RENDERMODE_TEST:
this[_0x54edcd(0x382)](),
this[_0x54edcd(0xa8)]();
break;
}
break;
case CELLTYPE_FOOD:
switch (renderMode) {
case RENDERMODE_CTX:
this[_0x54edcd(0x6d)]();
break;
case RENDERMODE_GL:
this[_0x54edcd(0x79)]();
break;
case RENDERMODE_TEST:
this[_0x54edcd(0x6d)](),
this[_0x54edcd(0x79)]();
break;
}
break;
case CELLTYPE_VIRUS:
switch (renderMode) {
case RENDERMODE_CTX:
this['drawOneCell_virus_ctx']();
break;
case RENDERMODE_GL:
this['drawOneCell_virus_gl']();
break;
}
break;
case CELLTYPE_EJECTED:
switch (renderMode) {
case RENDERMODE_CTX:
this[_0x54edcd(0x2d8)]();
break;
case RENDERMODE_GL:
this[_0x54edcd(0x112)]();
break;
case RENDERMODE_TEST:
this['drawOneCell_ejected_ctx'](),
this[_0x54edcd(0x112)]();
break;
}
break;
case CELLTYPE_RED_VIRUS:
this[_0x54edcd(0x308)]();
break;
case CELLTYPE_GOLD:
this[_0x54edcd(0x224)]();
break;
default:
console[_0x54edcd(0x323)]('CellType\x20bilinmiyor:' + this[_0x54edcd(0x2ad)]);
break;
}
}
};
function getBoardArea() {
var _0x299468 = _0x2a4b69
, _0x30b07a = Math[_0x299468(0x32a)](leftPos, rightPos)
, _0x6bf506 = Math['max'](leftPos, rightPos)
, _0x272f55 = (_0x30b07a + _0x6bf506) / 0x2
, _0x2df88e = Math[_0x299468(0x32a)](topPos, bottomPos)
, _0xb31a89 = Math['max'](topPos, bottomPos)
, _0x2798d4 = (_0x2df88e + _0xb31a89) / 0x2;
return {
'x_min': _0x30b07a,
'x_mid': _0x272f55,
'x_max': _0x6bf506,
'y_min': _0x2df88e,
'y_mid': _0x2798d4,
'y_max': _0xb31a89,
'isInside': function(_0x141561, _0x4e2cd3) {
return _0x141561 >= _0x30b07a && _0x141561 <= _0x6bf506 && _0x4e2cd3 >= _0x2df88e && _0x4e2cd3 <= _0xb31a89 ? !![] : ![];
}
};
}
const cellManager = new function() {
var _0x31ec6e = _0x2a4b69;
this[_0x31ec6e(0x39d)] = [],
this['cellObject'] = {},
this['playerCellIdList'] = [],
this[_0x31ec6e(0x19c)] = [],
this['recordList'] = [],
this['recordN'] = 0x0,
this['recordFrameTime'] = 0x0,
this[_0x31ec6e(0xb7)] = 0x5,
this[_0x31ec6e(0xa7)] = DRAWMODE_NORMAL,
this['add'] = function(_0x2a9e6e) {
var _0x40a87a = _0x31ec6e;
this[_0x40a87a(0x39d)][_0x40a87a(0x328)](_0x2a9e6e),
this[_0x40a87a(0x89)][_0x2a9e6e['id']] = _0x2a9e6e;
}
,
this[_0x31ec6e(0x3ea)] = function(_0x462067) {
var _0x21b41b = _0x31ec6e;
for (var _0x239fb3 = 0x0; _0x239fb3 < this[_0x21b41b(0x39d)]['length']; _0x239fb3++) {
if (this['cellList'][_0x239fb3] == _0x462067) {
this[_0x21b41b(0x39d)][_0x21b41b(0x1df)](_0x239fb3, 0x1);
break;
}
}
delete this[_0x21b41b(0x89)][_0x462067['id']];
var _0x1379f6 = this[_0x21b41b(0x19c)]['indexOf'](_0x462067);
_0x1379f6 != -0x1 && this[_0x21b41b(0x19c)][_0x21b41b(0x1df)](_0x1379f6, 0x1);
var _0x3f4ade = this['playerCellIdList'][_0x21b41b(0xb8)](_0x462067['id']);
_0x3f4ade != -0x1 && this['playerCellIdList']['splice'](_0x3f4ade, 0x1);
}
,
this[_0x31ec6e(0x2c3)] = function() {
var _0x157e9c = _0x31ec6e;
this[_0x157e9c(0x39d)] = [],
this['cellObject'] = {},
this[_0x157e9c(0x3cc)] = [],
this['playerCellList'] = [];
}
,
this[_0x31ec6e(0xac)] = function() {
var _0x5aa279 = _0x31ec6e;
this[_0x5aa279(0x3c8)] = [],
this[_0x5aa279(0x3a1)] = 0x0,
this[_0x5aa279(0x2bf)] = 0x0;
}
,
this[_0x31ec6e(0x2d5)] = function() {
var _0x17aa8f = _0x31ec6e
, _0x381510 = {};
_0x381510[_0x17aa8f(0x25e)] = [];
for (var _0x2ec33a = 0x0; _0x2ec33a < leaderBoard[_0x17aa8f(0x395)]; _0x2ec33a++) {
var _0x4cf96d = Object[_0x17aa8f(0xd0)]({}, leaderBoard[_0x2ec33a]);
_0x381510[_0x17aa8f(0x25e)][_0x17aa8f(0x328)](_0x4cf96d);
}
_0x381510[_0x17aa8f(0x316)] = countdown,
_0x381510['cellList'] = [];
for (var _0x2ec33a = 0x0; _0x2ec33a < this[_0x17aa8f(0x39d)][_0x17aa8f(0x395)]; _0x2ec33a++) {
var _0x4cf96d = new Cell();
Object[_0x17aa8f(0xd0)](_0x4cf96d, this['cellList'][_0x2ec33a]),
_0x381510[_0x17aa8f(0x39d)][_0x17aa8f(0x328)](_0x4cf96d);
}
_0x381510[_0x17aa8f(0x89)] = Object[_0x17aa8f(0xd0)]({}, this[_0x17aa8f(0x89)]),
_0x381510[_0x17aa8f(0x19c)] = [];
for (var _0x2ec33a = 0x0; _0x2ec33a < this[_0x17aa8f(0x19c)][_0x17aa8f(0x395)]; _0x2ec33a++) {
var _0x4cf96d = new Cell();
Object[_0x17aa8f(0xd0)](_0x4cf96d, this[_0x17aa8f(0x19c)][_0x2ec33a]),
_0x381510[_0x17aa8f(0x19c)][_0x17aa8f(0x328)](_0x4cf96d);
}
_0x381510['playerCellIdList'] = this[_0x17aa8f(0x3cc)][_0x17aa8f(0x321)](),
this[_0x17aa8f(0x3c8)]['push'](_0x381510),
this[_0x17aa8f(0x3c8)][_0x17aa8f(0x395)] > this[_0x17aa8f(0xb7)] * 0x14 && this[_0x17aa8f(0x3c8)]['shift']();
}
,
this[_0x31ec6e(0x100)] = function() {
var _0xe11089 = _0x31ec6e;
if (this[_0xe11089(0xa7)] == DRAWMODE_NORMAL)
return this[_0xe11089(0x39d)];
else {
var _0xa68658 = this[_0xe11089(0x3f6)]();
return _0xa68658 != null ? _0xa68658[_0xe11089(0x39d)] : null;
}
}
,
this[_0x31ec6e(0x3f6)] = function() {
var _0x59e311 = _0x31ec6e;
if (this[_0x59e311(0x3c8)]['length'] == 0x0)
return null;
if (this['recordN'] < 0x0)
this[_0x59e311(0x3a1)] = 0x0;
else
this[_0x59e311(0x3a1)] >= this[_0x59e311(0x3c8)][_0x59e311(0x395)] && (this['recordN'] = this['recordList'][_0x59e311(0x395)] - 0x1);
return this['recordList'][this[_0x59e311(0x3a1)]];
}
,
this[_0x31ec6e(0x32f)] = function() {
var _0x4ce3ec = _0x31ec6e
, _0x403a5b = this[_0x4ce3ec(0x3f6)]();
if (_0x403a5b == null)
return;
var _0x174a1c = [];
for (var _0x5cb219 = 0x0; _0x5cb219 < _0x403a5b[_0x4ce3ec(0x39d)][_0x4ce3ec(0x395)]; _0x5cb219++) {
var _0x1f390d = _0x403a5b[_0x4ce3ec(0x39d)][_0x5cb219];
_0x1f390d[_0x4ce3ec(0x1a3)](),
(spectatorId == _0x1f390d[_0x4ce3ec(0x3a5)] || playerId == _0x1f390d[_0x4ce3ec(0x3a5)]) && (options[_0x4ce3ec(0x197)](_0x4ce3ec(0x3bf)) && _0x174a1c[_0x4ce3ec(0x328)](_0x1f390d));
}
}
,
this['updateAndDraw'] = function() {
var _0x548267 = _0x31ec6e
, _0xa1e5a = []
, _0x5a2e52 = fpsManager[_0x548267(0x362)]();
for (var _0x2859e1 = 0x0; _0x2859e1 < this[_0x548267(0x39d)][_0x548267(0x395)]; _0x2859e1++) {
var _0x294b15 = this[_0x548267(0x39d)][_0x2859e1];
if ((_0x294b15[_0x548267(0x2ad)] == CELLTYPE_FOOD || _0x294b15[_0x548267(0x2ad)] == CELLTYPE_EJECTED) && _0x5a2e52 > 0x64) {} else
_0x294b15[_0x548267(0x1e2)](),
_0x294b15[_0x548267(0x1a3)](),
(spectatorId == _0x294b15['pID'] || playerId == _0x294b15['pID']) && (options[_0x548267(0x197)]('drawEdge') && _0xa1e5a[_0x548267(0x328)](_0x294b15));
}
switch (renderMode) {
case RENDERMODE_CTX:
ctx[_0x548267(0x7f)] = ColorManager[_0x548267(0x163)][_0x548267(0xdd)],
ctx[_0x548267(0x1fa)] = frameLineWidth / cameraManager['scale'];
for (var _0x2859e1 = 0x0; _0x2859e1 < _0xa1e5a[_0x548267(0x395)]; _0x2859e1++) {
_0xa1e5a[_0x2859e1][_0x548267(0xe9)] >= minFrameDrawSize && (ctx[_0x548267(0x3d0)](),
ctx[_0x548267(0x2cd)](_0xa1e5a[_0x2859e1]['x_draw'], _0xa1e5a[_0x2859e1][_0x548267(0x320)], _0xa1e5a[_0x2859e1][_0x548267(0xe9)], 0x0, 0x2 * Math['PI'], ![]),
ctx['stroke']());
}
break;
case RENDERMODE_GL:
for (var _0x2859e1 = 0x0; _0x2859e1 < _0xa1e5a[_0x548267(0x395)]; _0x2859e1++) {
prog_cell[_0x548267(0x245)](_0xa1e5a[_0x2859e1]);
}
break;
}
}
,
this[_0x31ec6e(0x86)] = function(_0x297c9d) {
var _0x40423a = _0x31ec6e;
renderMode == RENDERMODE_CTX && (options[_0x40423a(0x197)]('transparentRender') == !![] ? _0x297c9d[_0x40423a(0x111)] = 0.6 : _0x297c9d[_0x40423a(0x111)] = 0x1);
switch (this[_0x40423a(0xa7)]) {
case DRAWMODE_NORMAL:
this[_0x40423a(0x1c6)]();
break;
case DRAWMODE_REPLAY_STOP:
this[_0x40423a(0x3c8)][_0x40423a(0x395)] > 0x0 ? this[_0x40423a(0x32f)]() : this[_0x40423a(0xa7)] = DRAWMODE_NORMAL;
break;
case DRAWMODE_REPLAY_PLAY:
if (this[_0x40423a(0x3c8)][_0x40423a(0x395)] > 0x0) {
this[_0x40423a(0x32f)]();
var _0x34ab07 = fpsManager[_0x40423a(0x274)] - this[_0x40423a(0x2bf)];
if (_0x34ab07 >= 0x32) {
this[_0x40423a(0x2bf)] = fpsManager[_0x40423a(0x274)];
if (this[_0x40423a(0x3a1)] == this[_0x40423a(0x3c8)][_0x40423a(0x395)] - 0x1) {} else
this['recordN']++;
}
} else
this['drawMode'] = DRAWMODE_NORMAL;
break;
}
}
,
this['getViewArea'] = function() {
var _0x454a7e = _0x31ec6e
, _0x5f51b6 = null
, _0x211b8f = null
, _0x49b69c = null
, _0x3d3b2a = null
, _0x52ce5d = -0x1;
if (spectatorId != -0x1)
_0x52ce5d = spectatorId;
else {
if (playerId != -0x1)
_0x52ce5d = playerId;
else
return null;
}
var _0x1d3ff5 = getBoardArea()
, _0x562126 = this[_0x454a7e(0x39d)];
if (this[_0x454a7e(0xa7)] == DRAWMODE_REPLAY_PLAY || this[_0x454a7e(0xa7)] == DRAWMODE_REPLAY_STOP) {
var _0x2c3a18 = this[_0x454a7e(0x3f6)]();
_0x2c3a18 != null && (_0x562126 = _0x2c3a18[_0x454a7e(0x39d)]);
}
var _0x37e16a = 0x0;
for (var _0x1e97f3 = 0x0; _0x1e97f3 < _0x562126[_0x454a7e(0x395)]; _0x1e97f3++) {
var _0x500897 = _0x562126[_0x1e97f3];
if (_0x500897['pID'] == _0x52ce5d && _0x1d3ff5[_0x454a7e(0x1a8)](_0x500897[_0x454a7e(0x394)], _0x500897[_0x454a7e(0x320)])) {
_0x37e16a++,
_0x489d67 = _0x500897[_0x454a7e(0x394)] - _0x500897[_0x454a7e(0xe9)];
(_0x489d67 < _0x5f51b6 || _0x5f51b6 == null) && (_0x5f51b6 = _0x489d67);
_0x489d67 = _0x500897['x_draw'] + _0x500897[_0x454a7e(0xe9)];
(_0x489d67 > _0x211b8f || _0x211b8f == null) && (_0x211b8f = _0x489d67);
var _0x489d67 = _0x500897[_0x454a7e(0x320)] - _0x500897[_0x454a7e(0xe9)];
(_0x489d67 < _0x49b69c || _0x49b69c == null) && (_0x49b69c = _0x489d67),
_0x489d67 = _0x500897[_0x454a7e(0x320)] + _0x500897[_0x454a7e(0xe9)],
(_0x489d67 > _0x3d3b2a || _0x3d3b2a == null) && (_0x3d3b2a = _0x489d67);
}
}
if (_0x37e16a == 0x0)
return null;
var _0x34cf35 = (_0x5f51b6 + _0x211b8f) / 0x2
, _0x1428ce = (_0x49b69c + _0x3d3b2a) / 0x2
, _0x126117 = _0x211b8f - _0x5f51b6
, _0x959697 = _0x3d3b2a - _0x49b69c
, _0x4dc79e = _0x126117 * _0x959697;
return {
'x_min': _0x5f51b6,
'x_mid': _0x34cf35,
'x_max': _0x211b8f,
'y_min': _0x49b69c,
'y_mid': _0x1428ce,
'y_max': _0x3d3b2a,
'x_size': _0x126117,
'y_size': _0x959697,
'volume': _0x4dc79e
};
}
,
this['updatePos'] = function() {
var _0x1a16ba = _0x31ec6e;
if (this[_0x1a16ba(0x19c)]['length'] > 0x0) {
var _0x3f088c = getBoardArea();
for (var _0xca7931 = 0x0; _0xca7931 < this[_0x1a16ba(0x19c)][_0x1a16ba(0x395)]; _0xca7931++) {
var _0x2b9230 = this[_0x1a16ba(0x19c)][_0xca7931];
_0x3f088c['isInside'](_0x2b9230[_0x1a16ba(0x394)], _0x2b9230[_0x1a16ba(0x320)]) && _0x2b9230['updatePos']();
}
}
}
,
this[_0x31ec6e(0x34b)] = function() {
var _0x2b96fe = _0x31ec6e;
this[_0x2b96fe(0x39d)][_0x2b96fe(0x34b)](function(_0x2c26fb, _0xbedbb2) {
var _0x4bf578 = _0x2b96fe;
return _0x2c26fb[_0x4bf578(0xe9)] == _0xbedbb2[_0x4bf578(0xe9)] ? _0x2c26fb['id'] - _0xbedbb2['id'] : _0x2c26fb[_0x4bf578(0xe9)] - _0xbedbb2[_0x4bf578(0xe9)];
});
}
,
this['s2c_updateExt'] = function(_0x2aae71, _0x1eae32, _0x3b2b36, _0x140f31) {
var _0x353fc9 = _0x31ec6e;
for (var _0x27ceb5 = 0x0; _0x27ceb5 < this[_0x353fc9(0x39d)]['length']; _0x27ceb5++) {
this['cellList'][_0x27ceb5]['pID'] == _0x2aae71 && (this[_0x353fc9(0x39d)][_0x27ceb5][_0x353fc9(0x377)] = _0x1eae32,
this[_0x353fc9(0x39d)][_0x27ceb5]['name'] = _0x3b2b36,
this[_0x353fc9(0x39d)][_0x27ceb5]['setSkinName'](_0x140f31));
}
}
,
this['s2c_update'] = function(_0x300a38, _0x54d08b, _0x31bd6c, _0x2269aa, _0x40ad9f, _0x28439f, _0xb48dc2, _0x4d131d, _0x1a71f9, _0x53ff6a) {
var _0x48f32e = _0x31ec6e
, _0x5ec7b8 = null;
if (this[_0x48f32e(0x89)][_0x48f32e(0x24c)](_0x31bd6c))
_0x5ec7b8 = this[_0x48f32e(0x89)][_0x31bd6c],
_0x5ec7b8['updateCounter']++,
_0x5ec7b8[_0x48f32e(0x1e2)](),
options[_0x48f32e(0x197)](_0x48f32e(0x170)) == !![] ? (_0x5ec7b8['x_old'] = _0x5ec7b8[_0x48f32e(0x2e6)],
_0x5ec7b8['y_old'] = _0x5ec7b8['y_new'],
_0x5ec7b8[_0x48f32e(0x394)] = _0x5ec7b8['x_new'],
_0x5ec7b8[_0x48f32e(0x320)] = _0x5ec7b8[_0x48f32e(0x315)]) : (_0x5ec7b8[_0x48f32e(0x3e2)] = _0x5ec7b8[_0x48f32e(0x394)],
_0x5ec7b8[_0x48f32e(0x149)] = _0x5ec7b8[_0x48f32e(0x320)]),
_0x5ec7b8[_0x48f32e(0x2e6)] = _0x2269aa,
_0x5ec7b8[_0x48f32e(0x315)] = _0x40ad9f,
debug_pos == 0x1 && _0x5ec7b8[_0x48f32e(0x1f7)][_0x48f32e(0x328)]({
'x': _0x2269aa,
'y': _0x40ad9f
}),
_0x5ec7b8[_0x48f32e(0x1f7)][_0x48f32e(0x395)] > 0x64 && _0x5ec7b8[_0x48f32e(0x1f7)][_0x48f32e(0x8f)](),
_0x5ec7b8[_0x48f32e(0x2b4)] = _0x5ec7b8[_0x48f32e(0x21a)],
_0x5ec7b8[_0x48f32e(0xe9)] = _0x5ec7b8[_0x48f32e(0x21a)],
_0x5ec7b8[_0x48f32e(0x21a)] = _0x28439f,
_0x5ec7b8[_0x48f32e(0x313)] = _0xb48dc2,
_0x5ec7b8[_0x48f32e(0x2e4)] = _0x4d131d,
_0x5ec7b8[_0x48f32e(0xd3)]();
else {
_0x5ec7b8 = new Cell(_0x31bd6c,_0x2269aa,_0x40ad9f,_0x28439f,_0xb48dc2,_0x4d131d,''),
this['cellObject'][_0x31bd6c] = _0x5ec7b8,
_0x5ec7b8[_0x48f32e(0x377)] = 0x0,
_0x5ec7b8[_0x48f32e(0x1b6)] = 0x1,
_0x5ec7b8[_0x48f32e(0x3e2)] = _0x5ec7b8[_0x48f32e(0x2e6)],
_0x5ec7b8['x_draw'] = _0x5ec7b8[_0x48f32e(0x2e6)],
_0x5ec7b8['x_new'] = _0x2269aa,
_0x5ec7b8[_0x48f32e(0x149)] = _0x5ec7b8['y_new'],
_0x5ec7b8[_0x48f32e(0x320)] = _0x5ec7b8[_0x48f32e(0x315)],
_0x5ec7b8[_0x48f32e(0x315)] = _0x40ad9f,
_0x5ec7b8[_0x48f32e(0x2b4)] = _0x5ec7b8['size_new'],
_0x5ec7b8[_0x48f32e(0xe9)] = _0x5ec7b8[_0x48f32e(0x21a)],
_0x5ec7b8[_0x48f32e(0x21a)] = _0x28439f;
var _0x280d8b = fancyCell['get'](_0x1a71f9);
_0x280d8b != null && (_0x5ec7b8[_0x48f32e(0x18a)] = _0x280d8b,
_0x5ec7b8[_0x48f32e(0x21b)](),
_0x5ec7b8['movePoints']()),
this[_0x48f32e(0x276)](_0x5ec7b8);
}
_0x5ec7b8['pID'] = _0x53ff6a,
_0x5ec7b8['calcScoreWidth'](_0x300a38),
_0x5ec7b8[_0x48f32e(0x166)] = _0x54d08b,
_0x5ec7b8[_0x48f32e(0x2ad)] = _0x1a71f9,
this[_0x48f32e(0x3cc)][_0x48f32e(0xb8)](_0x31bd6c) != -0x1 && this[_0x48f32e(0x19c)][_0x48f32e(0xb8)](_0x5ec7b8) == -0x1 && (document[_0x48f32e(0x19e)](_0x48f32e(0x345))[_0x48f32e(0xe6)][_0x48f32e(0x7b)] = _0x48f32e(0x146),
this['playerCellList'][_0x48f32e(0x328)](_0x5ec7b8),
this['playerCellList'][_0x48f32e(0x395)] == 0x1 && (drawMapDstPoint = !![]));
}
,
this[_0x31ec6e(0x2e1)] = function(_0x3c129a) {
var _0x343c6d = _0x31ec6e
, _0x5cd713 = this['cellObject'][_0x3c129a];
_0x5cd713 != null && _0x5cd713[_0x343c6d(0x285)]();
}
,
setInterval(function() {
var _0x13d299 = _0x31ec6e;
changeSkinCounter++;
for (var _0x24da1e = 0x0; _0x24da1e < this[_0x13d299(0x39d)][_0x13d299(0x395)]; _0x24da1e++) {
var _0x484338 = this[_0x13d299(0x39d)][_0x24da1e];
_0x484338['changeSkin']();
}
}
['bind'](this), 0x7d0);
}
()
, cameraManager = new function() {
var _0x40ce94 = _0x2a4b69;
this[_0x40ce94(0x99)] = (leftPos + rightPos) / 0x2,
this[_0x40ce94(0x1d3)] = (topPos + bottomPos) / 0x2,
this[_0x40ce94(0x354)] = this[_0x40ce94(0x99)],
this[_0x40ce94(0xcc)] = this[_0x40ce94(0x1d3)],
this[_0x40ce94(0x9a)] = 0.009,
this[_0x40ce94(0x2a9)] = 0.3,
this[_0x40ce94(0x11b)] = 0x1,
this[_0x40ce94(0x3b8)] = this[_0x40ce94(0x2a9)],
this[_0x40ce94(0x199)] = 0.2,
this[_0x40ce94(0x6b)] = function() {
var _0x16ca72 = _0x40ce94;
if (viewArea == null)
return;
var _0x2f3aa7 = viewArea[_0x16ca72(0x1f4)] * this[_0x16ca72(0x3b8)] / mainCanvas['width']
, _0x495ae8 = viewArea[_0x16ca72(0x76)] * this[_0x16ca72(0x3b8)] / mainCanvas['height'];
if (_0x495ae8 > 0x1)
tutorial_zoom['onZoomMaxEvent'](),
this['scale'] = mainCanvas[_0x16ca72(0x326)] / viewArea[_0x16ca72(0x76)],
this[_0x16ca72(0x3d1)] = this[_0x16ca72(0x3b8)];
else
_0x2f3aa7 > 0x1 && (tutorial_zoom[_0x16ca72(0x351)](),
this[_0x16ca72(0x3b8)] = mainCanvas['width'] / viewArea[_0x16ca72(0x1f4)],
this[_0x16ca72(0x3d1)] = this[_0x16ca72(0x3b8)]);
if (zoomVector != 0x0) {
var _0x1dd8d7 = zoomVector * 0.1 / fpsManager[_0x16ca72(0x3f3)];
this[_0x16ca72(0xe5)](_0x1dd8d7);
}
this['translate_x'] = viewArea[_0x16ca72(0x363)],
this[_0x16ca72(0x1d3)] = viewArea['y_mid'];
var _0x346b1b = 0.5
, _0x2e2b1c = this[_0x16ca72(0x99)] - this[_0x16ca72(0x354)]
, _0x1d308e = this['translate_y'] - this[_0x16ca72(0xcc)]
, _0x3521c0 = Math[_0x16ca72(0xe7)](_0x2e2b1c * _0x2e2b1c + _0x1d308e * _0x1d308e);
_0x3521c0 > 0x64 && (_0x346b1b = 0.1),
this[_0x16ca72(0x354)] += _0x2e2b1c * _0x346b1b,
this[_0x16ca72(0xcc)] += _0x1d308e * _0x346b1b;
}
,
this[_0x40ce94(0x16e)] = function() {
var _0x4cba1c = _0x40ce94;
if (!isGoldUsing)
return;
if (viewArea == null)
return;
var _0x3384fd = viewArea[_0x4cba1c(0x1f4)] * this[_0x4cba1c(0x3b8)] * viewArea[_0x4cba1c(0x76)] * this[_0x4cba1c(0x3b8)]
, _0x4b61f3 = mainCanvas['width'] * mainCanvas[_0x4cba1c(0x326)]
, _0x21b82b = _0x4b61f3 / _0x3384fd;
if (_0x21b82b < 0x5) {
var _0x513fa5 = fpsManager['fps']
, _0x30269e = this[_0x4cba1c(0x3b8)];
this[_0x4cba1c(0xe5)](-0.15 / (_0x513fa5 * _0x21b82b));
}
}
,
this['convertPixelToGame'] = function(_0x27f325, _0x32cc55) {
var _0x361a44 = _0x40ce94;
return {
'x': this[_0x361a44(0x99)] + (_0x27f325 - mainCanvas[_0x361a44(0x335)] / 0x2) / this['scale'],
'y': this[_0x361a44(0x1d3)] + (_0x32cc55 - mainCanvas[_0x361a44(0x326)] / 0x2) / this[_0x361a44(0x3b8)]
};
}
,
this[_0x40ce94(0x35b)] = function() {
var _0x45e03e = _0x40ce94;
return this[_0x45e03e(0x2b3)](rawMouseX, rawMouseY);
}
,
this[_0x40ce94(0x2cf)] = function(_0x81b9b7) {
var _0x58a53c = _0x40ce94;
this[_0x58a53c(0x3b8)] = _0x81b9b7;
if (this[_0x58a53c(0x3b8)] < this[_0x58a53c(0x9a)])
this['scale'] = this[_0x58a53c(0x9a)];
else
this['scale'] > this[_0x58a53c(0x11b)] && (this[_0x58a53c(0x3b8)] = this[_0x58a53c(0x11b)]);
}
,
this['scaleChange'] = function(_0x51d75d) {
var _0x29e5d1 = _0x40ce94;
this[_0x29e5d1(0x2cf)](this['scale'] + _0x51d75d);
}
,
this[_0x40ce94(0x2ae)] = function(_0x5e30ab) {
var _0x3d6285 = _0x40ce94;
this[_0x3d6285(0xe5)](_0x5e30ab);
}
,
this[_0x40ce94(0x3a9)] = function(_0x4cc83b) {
var _0x3ed972 = _0x40ce94;
this[_0x3ed972(0xe5)](0.01 * Math[_0x3ed972(0x11c)](_0x4cc83b));
}
,
this[_0x40ce94(0x26b)] = function() {
var _0x1cf635 = _0x40ce94;
this[_0x1cf635(0x3b8)] = this[_0x1cf635(0x2a9)];
}
;
}
();
var spectatorPlayer = null
, plList = []
, debug_pos = 0x0
, chatLineMax = 0xf
, chatBoard = [];
const OPCODE_S2C_UPDATE_POSITION = 0x11
, OPCODE_S2C_ADDNODE = 0x20
, OPCODE_S2C_UPDATE_LEADERBOARD = 0x31
, OPCODE_S2C_UPDATE_LEADERBOARD_EXT = 0x33
, OPCODE_S2C_PLAYER_LIST = 0x34
, OPCODE_S2C_BOARD_SIZE = 0x40
, OPCODE_S2C_RECORD_HOLDER = 0x57
, OPCODE_S2C_MAP_CLAN_PLAYERS = 0x58
, OPCODE_S2C_MAP_TEAM_PLAYERS = 0x5a
, OPCODE_S2C_ADD_CHAT = 0x5b
, OPCODE_S2C_GAMENAME = 0x5c
, OPCODE_S2C_USER_LOGOUT = 0x5d
, OPCODE_S2C_USER_GOLD = 0x5e
, OPCODE_S2C_TOPMSG = 0x5f
, OPCODE_S2C_COUNTDOWN = 0x60
, OPCODE_S2C_WINNER = 0x61
, OPCODE_S2C_UPDATE_NODES2 = 0x64
, OPCODE_S2C_UPDATE_NODES2_EXT = 0x65
, OPCODE_S2C_RECORD_HOLDER_V2 = 0x66
, OPCODE_S2C_SPECTATE_ID = 0x67
, OPCODE_S2C_PLAYER_ID = 0x68
, OPCODE_S2C_IPSAFE_FAIL = 0x69
, OPCODE_S2C_TOPMSG_CLEAR = 0x6a
, OPCODE_S2C_WINPRIZE = 0x6b
, OPCODE_S2C_ENTER_PRICE = 0x6c
, OPCODE_S2C_READY_TO_START = 0x6d
, OPCODE_S2C_SERVER_VERSION = 0x6e
, OPCODE_S2C_INFO = 0x6f
, OPCODE_S2C_USER_ID = 0x70
, OPCODE_S2C_VALUE_UINT32 = 0x71
, OPCODE_S2C_ENDGAME_LIST = 0x72
, OPCODE_S2C_PLAYER_INFO = 0x73
, OPCODE_S2C_ADD_CHAT_ADMIN = 0x74
, OPCODE_S2C_CHAT_REMOVE = 0x75
, OPCODE_S2C_VOICE = 0x76
, OPCODE_S2C_CONSOLE_LOG = 0x78
, OPCODE_S2C_LEADERBOARD_INDEX = 0x79
, OPCODE_S2C_SHOW_MESSAGE = 0x7a
, OPCODE_C2S_SPECTATE_REQUEST = 0x1
, OPCODE_C2S_SET_SKIN = 0x2
, OPCODE_C2S_SET_TOKEN = 0x3
, OPCODE_C2S_USEGOLD_SMALL_ONCE = 0x4
, OPCODE_C2S_SCOPE_AROUND_ENABLE = 0x5
, OPCODE_C2S_SCOPE_AROUND_DISABLE = 0x6
, OPCODE_C2S_SET_NAME = 0x7
, OPCODE_C2S_PLAY_AS_GUEST_REQUEST = 0x8
, OPCODE_C2S_SPAWN_PLAYER = 0x9
, OPCODE_C2S_CONFIRM_PAY = 0xa
, OPCODE_C2S_SPAWN_PLAYER_ADMIN = 0xb
, OPCODE_C2S_ADDPRIZE = 0xc
, OPCODE_C2S_PING = 0xd
, OPCODE_C2S_SETBORDER_REQUEST = 0xe
, OPCODE_C2S_SPECTATE_ADMIN = 0xf
, OPCODE_C2S_MOUSE_MOVE = 0x10
, OPCODE_C2S_SPLIT = 0x11
, OPCODE_C2S_OBSERVE_TOP = 0x12
, OPCODE_C2S_OBSERVE_UP = 0x13
, OPCODE_C2S_OBSERVE_DOWN = 0x14
, OPCODE_C2S_EMITFOOD_ONCE = 0x15
, OPCODE_C2S_EMITFOOD_START = 0x16
, OPCODE_C2S_EMITFOOD_STOP = 0x17
, OPCODE_C2S_USEGOLD_BIG_ONCE = 0x18
, OPCODE_C2S_SET_LANG = 0x19
, OPCODE_C2S_SET_TEAM = 0x1a
, OPCODE_C2S_ADDPRIZE_100K = 0x1b
, OPCODE_C2S_CHAT_DISABLE_FOR_GUESTS = 0x1d
, OPCODE_C2S_CHAT_ENABLE_FOR_GUESTS = 0x1e
, OPCODE_C2S_CHATBAN = 0x1f
, OPCODE_C2S_CHATBAN_REMOVE = 0x20
, OPCODE_C2S_ADD_TOPMSG = 0x21
, OPCODE_C2S_WINNER_UPDATE = 0x22
, OPCODE_C2S_USEGOLD_SMALL_START = 0x23
, OPCODE_C2S_USEGOLD_BIG_START = 0x24
, OPCODE_C2S_USEGOLD_SMALL_END = 0x25
, OPCODE_C2S_USEGOLD_BIG_END = 0x26
, OPCODE_C2S_CLEAR_TOPMSG = 0x27
, OPCODE_C2S_GET_PLAYER_LIST = 0x28
, OPCODE_C2S_KICK = 0x29
, OPCODE_C2S_IPBAN = 0x2a
, OPCODE_C2S_LOG_INSPECT_START = 0x2b
, OPCODE_C2S_ST300 = 0x2c
, OPCODE_C2S_OBSERVE_ONLY_PAID = 0x2d
, OPCODE_C2S_CLOSE_OBSERVERS = 0x2e
, OPCODE_C2S_CHATBAN_DAYS = 0x2f
, OPCODE_C2S_ADD_VIRUS = 0x30
, OPCODE_C2S_CHAT_REMOVE = 0x31
, OPCODE_C2S_SET_SPECTATOR = 0x32
, OPCODE_C2S_TALK = 0x33
, OPCODE_C2S_TALK2 = 0x34
, OPCODE_C2S_SOUND = 0x35
, OPCODE_C2S_ADDGOLDCELL = 0x36
, OPCODE_C2S_ACCOUNTS_ONLY = 0x37
, OPCODE_C2S_SETTICKLIFE = 0x38
, OPCODE_C2S_SET_GOLDTOPRIZE = 0x39
, OPCODE_C2S_GOLDTOPRIZE_TIME = 0x3a
, OPCODE_C2S_SET_AUTOBIG = 0x3b
, OPCODE_C2S_AUTOBIG_TIME = 0x3c
, OPCODE_C2S_ADD_TOPMSG_LINE = 0x3d
, OPCODE_C2S_CLEAR_TOPMSG_LINE = 0x3e
, OPCODE_C2S_SET_CONFIG = 0x3f
, OPCODE_C2S_RESET_RECORD = 0x40
, OPCODE_C2S_GET_BONUS_INFO = 0x41
, OPCODE_C2S_BONUS_TO_GOLD = 0x42
, OPCODE_C2S_SHOW_BONUS_INFO = 0x43
, OPCODE_C2S_FORK = 0x44
, OPCODE_C2S_SET_PLAYSTATE = 0x45
, OPCODE_C2S_SEND_CHAT = 0x63
, OPCODE_C2S_BEGIN = 0xff
, INFO_SHOW_MAINMENU = 0x0
, INFO_READY_TO_PLAY = 0x1
, INFO_ASK_ENTER_PRICE = 0x2
, INFO_TOKEN_IS_INCORRECT = 0x3
, INFO_LOGIN_COMPLETED = 0x4
, INFO_GUEST_CANNOT_PAY = 0x5
, INFO_NO_NEED_PAY = 0x6
, INFO_ALREADY_PAID = 0x7
, INFO_GOLD_IS_NOT_ENOUGH = 0x8
, INFO_GUEST_CANNOT_ENTER = 0x9
, INFO_PLAYER_ALREADY_SPAWN = 0xa
, INFO_THIS_KS_ROOM_CLOSED_TO_OBSERVE = 0xb
, INFO_WHILE_PLAYING_CANNOT_OBSERVE = 0xc
, INFO_GENERAL_ERROR = 0xd
, INFO_ONLY_PAID_PLAYERS_CAN_OBSERVE = 0xe
, INFO_ONLY_NEW_ACCOUNTS_ALLOWED = 0xf
, INFO_YOU_DEAD = 0x10
, INFO_SPECTATE_BEGIN = 0x11
, INFO_PLAY_BEGIN = 0x12
, PLAYMODE_NONE = 0x0
, PLAYMODE_PLAY = 0x1
, PLAYMODE_SPECTATE = 0x2;
var playMode = PLAYMODE_NONE
, skipPopupOnClose = ![]
, spectatorId = -0x1
, playerId = -0x1
, playerUserId = 0x0
, playerName = '!'
, gold = 0x0
, goldDiff = 0x0
, opt_drawFoods = !![]
, opt_drawFrame = !![]
, options = new function() {
var _0x5a0164 = _0x2a4b69;
this[_0x5a0164(0xe0)] = [],
this['onchangecustom'] = [],
this[_0x5a0164(0x25f)] = function() {
var _0x570ef7 = _0x5a0164;
isMobile ? this[_0x570ef7(0x2d9)] = document[_0x570ef7(0x19e)](_0x570ef7(0xcd)) : this[_0x570ef7(0x2d9)] = document['getElementById']('yesno_settings');
}
,
this[_0x5a0164(0x197)] = function(_0x161b27) {
if (localStorage[_0x161b27] == null)
return this['defaultValues'][_0x161b27];
return localStorage[_0x161b27] === 'true';
}
,
this[_0x5a0164(0xc5)] = function(_0x4fc255, _0x23917d) {
localStorage[_0x4fc255] = _0x23917d;
}
,
this[_0x5a0164(0x126)] = function(_0x5ab088, _0x22cfd7, _0x24479b, _0x486704) {
var _0x315842 = _0x5a0164
, _0x189197 = document['createElement']('LABEL')
, _0x12f0d2 = document[_0x315842(0x2e0)](_0x315842(0x1e8));
_0x12f0d2[_0x315842(0xae)] = _0x315842(0x3e0),
_0x12f0d2['onchange'] = function() {
var _0x464ad1 = _0x315842;
localStorage[_0x22cfd7] = this['checked'],
options[_0x464ad1(0x20d)][_0x22cfd7] !== null && options['onchangecustom'][_0x22cfd7]();
}
;
var _0x3b7277 = document[_0x315842(0x37e)](_0x5ab088);
_0x189197[_0x315842(0x2d7)](_0x12f0d2),
_0x189197[_0x315842(0x2d7)](_0x3b7277),
this[_0x315842(0x2d9)][_0x315842(0x2d7)](_0x189197),
this['defaultValues'][_0x22cfd7] = _0x24479b,
_0x12f0d2[_0x315842(0x246)] = this[_0x315842(0x197)](_0x22cfd7),
this['onchangecustom'][_0x22cfd7] = _0x486704,
_0x486704 != null && _0x486704();
}
;
}
()
, drawFancyTimeLimit = 0x32
, drawFlickerTimeLimit = 0xc8;
const CELLTYPE_PLAYER = 0x0
, CELLTYPE_FOOD = 0x1
, CELLTYPE_VIRUS = 0x2
, CELLTYPE_EJECTED = 0x3
, CELLTYPE_GOLD = 0x4
, CELLTYPE_RED_VIRUS = 0x5;
function isCellTypeValid(_0x4c5270) {
return _0x4c5270 != CELLTYPE_PLAYER && _0x4c5270 != CELLTYPE_FOOD && _0x4c5270 != CELLTYPE_VIRUS && _0x4c5270 != CELLTYPE_EJECTED && _0x4c5270 != CELLTYPE_GOLD && _0x4c5270 != CELLTYPE_RED_VIRUS ? ![] : !![];
}
var updateNodes2_prev = 0x0, updateNodes2_last = 0x1, updateNodes2_span = 0x1, viewArea = null, countdown = 0xe10, wsList = [], cameraSpeed = 0x3, minFrameDrawSize = 0x0, frameLineWidth = 0x1, isLockMouse = 0x0, lockMouseX = 0x0, lockMouseY = 0x0, isLockFood = 0x0, yesno_settings;
const CHATMODE_ALL = 0x0
, CHATMODE_TEAM = 0x1
, CHATMODE_CLAN = 0x2
, CHATMODE_AGARZ = 0x3
, SETMODE_CONTROLS = 0x1
, SETMODE_STORAGE = 0x2;
var teamSent = ''
, crownImage = new Image();
crownImage[_0x2a4b69(0x2dc)] = _0x2a4b69(0x1d6);
var record_uid = -0x1
, chatFilter = null
, goldToPrizeTime = 0x0
, autoBigTime = 0x0
, tutorial_zoom = new function() {
var _0x4e51f7 = _0x2a4b69;
this[_0x4e51f7(0x1dd)] = new Image(),
this[_0x4e51f7(0x1dd)][_0x4e51f7(0x2dc)] = _0x4e51f7(0x23a),
this[_0x4e51f7(0xee)] = new Image(),
this[_0x4e51f7(0xee)][_0x4e51f7(0x2dc)] = _0x4e51f7(0x1a7),
localStorage['tutorial_zoom_completed'] === _0x4e51f7(0x297) || isTouchDevice == !![] || navigator['userAgent'][_0x4e51f7(0x2b6)]()[_0x4e51f7(0x130)](/mobile/i) == !![] || mouseDetected == ![] ? this[_0x4e51f7(0x27b)] = 0x3 : this[_0x4e51f7(0x27b)] = 0x0,
this[_0x4e51f7(0x102)] = 0x0,
this['drawImage'] = function(_0x36cb32, _0x399bf3) {
var _0x5ec32a = _0x4e51f7;
_0x36cb32[_0x5ec32a(0x232)](_0x399bf3, mainCanvas[_0x5ec32a(0x335)] * 0.5 - _0x399bf3[_0x5ec32a(0x335)] * 0.5, mainCanvas[_0x5ec32a(0x326)] * 0.5 - _0x399bf3[_0x5ec32a(0x326)] * 0.5, _0x399bf3[_0x5ec32a(0x335)], _0x399bf3[_0x5ec32a(0x326)]);
}
,
this[_0x4e51f7(0x26c)] = function(_0x1031df, _0x95cff8) {
this['state'] == _0x1031df && this['setState'](_0x95cff8);
}
,
this[_0x4e51f7(0x371)] = function(_0x4add0c) {
var _0x368318 = _0x4e51f7;
this['state'] = _0x4add0c,
this[_0x368318(0x102)] = fpsManager['lastUpdateFrameTime'];
}
,
this[_0x4e51f7(0x3a9)] = function() {
var _0x2143d0 = _0x4e51f7;
this[_0x2143d0(0x26c)](0x1, 0x2);
}
,
this['onZoomMaxEvent'] = function() {
var _0x2d92d5 = _0x4e51f7;
this[_0x2d92d5(0x26c)](0x0, 0x1);
}
,
this[_0x4e51f7(0x1e5)] = function(_0x44d93c) {
var _0x55262c = _0x4e51f7;
switch (this['state']) {
case 0x0:
break;
case 0x1:
this[_0x55262c(0x232)](_0x44d93c, this['image_warn']);
break;
case 0x2:
this['drawImage'](_0x44d93c, this['image_ok']);
var _0x51f438 = fpsManager[_0x55262c(0x274)] - this[_0x55262c(0x102)];
_0x51f438 > 0x7d0 && (localStorage[_0x55262c(0x291)] = !![],
this[_0x55262c(0x371)](0x3));
break;
case 0x3:
break;
}
}
;
}
();
const fancyCell = new function() {
var _0x4300bb = _0x2a4b69;
this[_0x4300bb(0x348)] = {},
this['add'] = function(_0x546540, _0x28d98e, _0x5b61d6, _0x18a07c, _0x511f01, _0x1e728c, _0x429294, _0x572c29, _0x510ab5) {
var _0x13aaa1 = _0x4300bb;
this[_0x13aaa1(0x348)][_0x546540] = {
'pointsLength': _0x28d98e,
'lineWidth': _0x5b61d6,
'lineJoin': _0x18a07c,
'distortionMax': _0x511f01,
'distortionHeight': _0x1e728c,
'distortionWide': _0x429294,
'spikeMod': _0x572c29,
'spikeSize': _0x510ab5
};
}
,
this[_0x4300bb(0x197)] = function(_0x15d47f) {
var _0x195268 = _0x4300bb;
return this[_0x195268(0x348)][_0x15d47f];
}
,
this['add'](CELLTYPE_VIRUS, 0x40, 0xf, _0x4300bb(0x1a2), 0x19, 0x5, 0x3, 0x4, 0x32),
this[_0x4300bb(0x276)](CELLTYPE_RED_VIRUS, 0x40, 0xf, _0x4300bb(0x1a2), 0x19, 0x5, 0x3, 0x2, 0x32),
this[_0x4300bb(0x276)](CELLTYPE_GOLD, 0x10, 0xf, _0x4300bb(0x1a2), 0x37, 0x1e, 0x2, 0x63, 0x32);
}
()
, fpsManager = new function() {
var _0x1aacae = _0x2a4b69;
this[_0x1aacae(0x33f)] = 0x0,
this[_0x1aacae(0x168)] = 0x0,
this[_0x1aacae(0x38f)] = 0x0,
this[_0x1aacae(0x3f3)] = 0x1,
this[_0x1aacae(0x274)] = 0x0,
this[_0x1aacae(0x222)] = 0x0,
this[_0x1aacae(0x117)] = 0x3e8,
this[_0x1aacae(0x2a1)] = function() {
var _0xa0a73b = _0x1aacae
, _0x2021d8 = new Date()[_0xa0a73b(0x20a)]();
this[_0xa0a73b(0x274)] != 0x0 && (this['lastUpdateFrameSpan'] = _0x2021d8 - this[_0xa0a73b(0x274)]);
this[_0xa0a73b(0x274)] = _0x2021d8,
this[_0xa0a73b(0x33f)]++;
if (this[_0xa0a73b(0x38f)] == 0x0)
this[_0xa0a73b(0x38f)] = _0x2021d8;
else {
var _0x5ef204 = _0x2021d8 - this[_0xa0a73b(0x38f)];
if (_0x5ef204 >= this[_0xa0a73b(0x117)]) {
var _0x3eaa97 = _0x5ef204 / 0x3e8;
this[_0xa0a73b(0x3f3)] = Math[_0xa0a73b(0x25d)](this[_0xa0a73b(0x168)] / _0x3eaa97 * 0x2710) / 0x2710,
this[_0xa0a73b(0x3f3)] == 0x0 && (this[_0xa0a73b(0x3f3)] = 0x1),
this[_0xa0a73b(0x38f)] = _0x2021d8,
this['counter'] = 0x0;
} else
this['counter']++;
}
}
,
this[_0x1aacae(0x362)] = function() {
var _0x37f247 = _0x1aacae;
return new Date()['getTime']() - this[_0x37f247(0x274)];
}
;
}
()
, KEYMAP_SPLIT = 0x0
, KEYMAP_OBSERVE_UP = 0x1
, KEYMAP_OBSERVE_DOWN = 0x2;
var keymap = [];
keymap[KEYMAP_SPLIT] = 0x20,
keymap[KEYMAP_OBSERVE_UP] = 0x31,
keymap[KEYMAP_OBSERVE_DOWN] = 0x32;
var js_load_time = new Date()[_0x2a4b69(0x20a)]()
, ping_last = 0x1
, skins = {}
, skinsLoaded = {}
, clanNameList = []
, playerInfoList = [];
!Number[_0x2a4b69(0x219)]['dotFormat'] && (Number[_0x2a4b69(0x219)][_0x2a4b69(0x287)] = function(_0x435fd0='.') {
var _0x1427cb = _0x2a4b69;
return this[_0x1427cb(0x1af)]()[_0x1427cb(0x340)](/\B(?=(\d{3})+(?!\d))/g, _0x435fd0);
}
);
!String[_0x2a4b69(0x219)][_0x2a4b69(0x12a)] && (String['prototype'][_0x2a4b69(0x12a)] = function(_0x5e610e, _0xf4e3ff) {
var _0x32e8d7 = _0x2a4b69;
return _0xf4e3ff = _0xf4e3ff || 0x0,
this[_0x32e8d7(0x3bc)](_0xf4e3ff, _0x5e610e[_0x32e8d7(0x395)]) === _0x5e610e;
}
);
Date[_0x2a4b69(0x38a)] || (Date[_0x2a4b69(0x38a)] = function() {
return new Date()['getTime']();
}
);
var getClanName = function(_0x4df119) {
var _0x50160e = _0x2a4b69;
$[_0x50160e(0x243)]({
'url': _0x50160e(0x3ec),
'method': _0x50160e(0x203),
'data': {
'id': _0x4df119
},
'cache': ![]
})[_0x50160e(0x398)](function(_0x22d3c3) {
clanNameList[_0x4df119] = _0x22d3c3;
});
};
function prepareData(_0x188871) {
var _0x45c98d = new ArrayBuffer(_0x188871);
return new DataView(_0x45c98d);
}
function setChatMode(_0x2a0b12, _0x392375) {
var _0x3d178b = _0x2a4b69;
if (_0x392375 & SETMODE_CONTROLS) {
var _0x1a5cf1 = '';
isMobile && (_0x1a5cf1 = '_mobile');
var _0x464fc9 = document['getElementById'](_0x3d178b(0x15a) + _0x1a5cf1)
, _0x25f69f = document[_0x3d178b(0x19e)](_0x3d178b(0x17f) + _0x1a5cf1)
, _0xac8281 = document['getElementById'](_0x3d178b(0x2e2) + _0x1a5cf1)
, _0x2207b0 = document[_0x3d178b(0x19e)](_0x3d178b(0x1ba) + _0x1a5cf1);
_0x464fc9[_0x3d178b(0x246)] = ![],
_0x25f69f[_0x3d178b(0x246)] = ![],
_0xac8281[_0x3d178b(0x246)] = ![],
_0x2207b0[_0x3d178b(0x246)] = ![];
switch (_0x2a0b12) {
case CHATMODE_ALL:
_0x464fc9[_0x3d178b(0x246)] = !![];
break;
case CHATMODE_TEAM:
_0x25f69f['checked'] = !![];
break;
case CHATMODE_CLAN:
_0xac8281[_0x3d178b(0x246)] = !![];
break;
case CHATMODE_AGARZ:
_0x2207b0[_0x3d178b(0x246)] = !![];
break;
}
}
_0x392375 & SETMODE_STORAGE && (localStorage[_0x3d178b(0x30f)] = _0x2a0b12);
}
function getPlayerByPID(_0x45650c) {
var _0x22d26a = _0x2a4b69;
for (var _0x84cfd6 = 0x0; _0x84cfd6 < plList[_0x22d26a(0x395)]; _0x84cfd6++) {
if (plList[_0x84cfd6][_0x22d26a(0x3c3)] == _0x45650c)
return plList[_0x84cfd6];
}
return null;
}
function showGeneralError(_0x2b1053, _0x3103e1) {
var _0x1614fb = _0x2a4b69;
typeof _0x3103e1 === _0x1614fb(0x2ed) && (_0x3103e1 = ''),
$(DIV_MAIN_MENU)[_0x1614fb(0xff)](),
$(_0x1614fb(0x25a))[_0x1614fb(0x3ce)](_0x2b1053),
$(_0x1614fb(0x305))['html'](_0x3103e1),
$(_0x1614fb(0x2c5))[_0x1614fb(0x3ed)]();
}
;setInterval(function() {
ping();
}, 0xbb8),
setInterval(function() {
var _0x7aedf7 = _0x2a4b69
, _0x229cd4 = 0x0;
for (var _0x5bb8b2 = 0x0; _0x5bb8b2 < wsList[_0x7aedf7(0x395)] - 0x1; _0x5bb8b2++) {
if (wsList[_0x5bb8b2] != null && wsList[_0x5bb8b2][_0x7aedf7(0x3bb)] == wsList[_0x5bb8b2][_0x7aedf7(0x265)]) {
try {
wsList[_0x5bb8b2]['close']();
} catch (_0x57d166) {}
wsList[_0x5bb8b2] = null,
_0x229cd4 = 0x1,
console['log'](_0x5bb8b2);
}
}
_0x229cd4 == 0x1 && wsList[_0x7aedf7(0x8f)]();
}, 0xbb8);
function getLangCode() {
var _0x2f7368 = _0x2a4b69
, _0x27487b = document[_0x2f7368(0x289)](_0x2f7368(0x3ce))[0x0][_0x2f7368(0x26a)](_0x2f7368(0xf5));
switch (_0x27487b) {
case 'tr':
return 'tr';
case 'en':
return 'en';
case 'es':
return 'es';
case 'de':
return 'de';
default:
return 'tr';
}
}
window['onkeypress'] = function(_0x20b2e8) {
var _0x4d8fa3 = _0x2a4b69
, _0x3617fa = $(DIV_MAIN_MENU)['is'](_0x4d8fa3(0x96));
if (isTyping || _0x3617fa)
return;
switch (_0x20b2e8[_0x4d8fa3(0x31a)]) {
case _0x4d8fa3(0x27c):
isLockMouse == 0x0 ? (isLockMouse = 0x1,
lockMouseX = moveToX,
lockMouseY = moveToY) : isLockMouse = 0x0;
break;
case _0x4d8fa3(0x158):
isLockFood == 0x0 ? (sendUint8(OPCODE_C2S_EMITFOOD_START),
isLockFood = 0x1) : (sendUint8(OPCODE_C2S_EMITFOOD_STOP),
isLockFood = 0x0);
break;
}
}
;
function tryClickChangeSpectator(_0x1e5809, _0x1a1f30) {
var _0x923332 = _0x2a4b69;
if (playMode == PLAYMODE_SPECTATE) {
var _0x5d1f8c = cellManager[_0x923332(0x100)]()
, _0x473f7a = cameraManager['convertPixelToGame'](_0x1e5809, _0x1a1f30)
, _0x4aa4b3 = Number[_0x923332(0x141)];
for (var _0x13b578 = 0x0; _0x13b578 < _0x5d1f8c[_0x923332(0x395)]; _0x13b578++) {
var _0x448b4d = _0x5d1f8c[_0x13b578];
if (_0x448b4d['cellType'] == CELLTYPE_PLAYER) {
var _0x27f5e5 = _0x448b4d[_0x923332(0x394)] - _0x473f7a['x']
, _0x2e1c1e = _0x448b4d['y_draw'] - _0x473f7a['y']
, _0x1aecf7 = Math[_0x923332(0xe7)](_0x27f5e5 * _0x27f5e5 + _0x2e1c1e * _0x2e1c1e);
_0x1aecf7 < _0x448b4d[_0x923332(0xe9)] && _0x448b4d[_0x923332(0xe9)] < _0x4aa4b3 && (_0x4aa4b3 = _0x448b4d[_0x923332(0xe9)],
spectatorId = _0x448b4d[_0x923332(0x3a5)],
setSpectator(spectatorId));
}
}
}
}
function tryClickSharePosition(_0x4682c9, _0x14a9db) {
var _0x3d138f = _0x2a4b69
, _0x75d5b8 = new Date()['getTime']() - txtpos_lastTime;
_0x75d5b8 > 0x1388 && _0x4682c9 >= 0xa && _0x4682c9 <= 0xa + txtpos_width && _0x14a9db >= 0xc8 - txtpos_height && _0x14a9db <= 0xc8 && (setChatMode(CHATMODE_ALL, SETMODE_CONTROLS | SETMODE_STORAGE),
sendChat(txtpos_share),
txtpos_lastTime = new Date()[_0x3d138f(0x20a)]());
}
function tryClickChatName(_0x32aca0, _0x2f5e72) {
var _0x572192 = _0x2a4b69;
for (let _0x13394c of chatManager[_0x572192(0x23d)]) {
if (_0x13394c[_0x572192(0x38d)] != 0x0 && _0x13394c[_0x572192(0x38d)] != undefined) {
if (_0x32aca0 >= _0x13394c[_0x572192(0x193)] && _0x32aca0 <= _0x13394c[_0x572192(0x193)] + _0x13394c[_0x572192(0x3e8)] && _0x2f5e72 <= _0x13394c['name_y'] && _0x2f5e72 >= _0x13394c[_0x572192(0x16a)] - _0x13394c['name_h']) {
var _0x53f2a2 = window[_0x572192(0x1b4)]('//agarz.com/' + getLangCode() + '/home/' + _0x13394c['userId'], _0x572192(0xa9));
_0x53f2a2['focus']();
break;
}
}
_0x13394c[_0x572192(0x6f)] != 0x0 && (_0x32aca0 >= _0x13394c['del_x'] && _0x32aca0 <= _0x13394c['del_x'] + _0x13394c['del_w'] && _0x2f5e72 <= _0x13394c[_0x572192(0x221)] && _0x2f5e72 >= _0x13394c['del_y'] - _0x13394c['del_h'] && adminChatMenu2[_0x572192(0x3ed)](_0x13394c[_0x572192(0x101)], _0x13394c[_0x572192(0x261)], _0x13394c[_0x572192(0x6f)], _0x13394c[_0x572192(0x38d)]));
}
}
function mainCanvas_onmousedown(_0x337f5e) {
var _0x55d281 = _0x2a4b69
, _0x45a248 = _0x337f5e[_0x55d281(0x104)]
, _0x57f39d = _0x337f5e[_0x55d281(0x352)];
tryClickSharePosition(_0x45a248, _0x57f39d),
tryClickChatName(_0x45a248, _0x57f39d),
tryClickChangeSpectator(_0x45a248, _0x57f39d),
chatManager['updateCursorStyle'](_0x45a248, _0x57f39d);
}
;function mainCanvas_onmousemove(_0x49a731) {
var _0x151945 = _0x2a4b69;
mouseDetected = !![],
rawMouseX = _0x49a731[_0x151945(0x104)],
rawMouseY = _0x49a731[_0x151945(0x352)],
chatManager[_0x151945(0x21d)](rawMouseX, rawMouseY);
}
;window[_0x2a4b69(0x327)] = function(_0x40b655) {
var _0x568fc6 = _0x2a4b69
, _0x647929 = $(DIV_MAIN_MENU)['is'](':visible');
switch (_0x40b655[_0x568fc6(0x1cc)]) {
case 0x20:
!spacePressed && !isTyping && _0x647929 == ![] && (sendMouseMove(),
sendUint8(OPCODE_C2S_SPLIT),
spacePressed = !![]);
break;
case 0x31:
!key1Pressed && !_0x647929 && (sendUint8(OPCODE_C2S_OBSERVE_UP),
key1Pressed = !![]);
break;
case 0x32:
!key2Pressed && !_0x647929 && (sendUint8(OPCODE_C2S_OBSERVE_DOWN),
key2Pressed = !![]);
break;
case 0x51:
!qPressed && _0x647929 == ![] && (sendUint8(OPCODE_C2S_OBSERVE_TOP),
qPressed = !![]);
break;
case 0x57:
!wPressed && !isTyping && _0x647929 == ![] && (sendMouseMove(),
sendUint8(OPCODE_C2S_EMITFOOD_ONCE),
wPressed = !![]);
break;
case 0x1b:
_0x647929 ? $(DIV_MAIN_MENU)[_0x568fc6(0xff)]() : $(DIV_MAIN_MENU)['show']();
canvasResize();
break;
case 0xd:
console[_0x568fc6(0x323)]('chat\x20send');
isTyping || isMobile ? (isTyping = ![],
sendChatMessage()) : !$(DIV_MAIN_MENU)['is'](':visible') && (isTyping = !![]);
break;
case 0x45:
!ePressed && !isTyping && _0x647929 == ![] && (ePressed = !![],
sendUint8(OPCODE_C2S_EMITFOOD_START));
break;
case 0x41:
!aPressed && !isTyping && _0x647929 == ![] && (aPressed = !![],
sendMouseMove(),
sendUint8(OPCODE_C2S_USEGOLD_SMALL_ONCE));
break;
case 0x53:
!sPressed && !isTyping && _0x647929 == ![] && (sPressed = !![],
sendUint8(OPCODE_C2S_USEGOLD_BIG_ONCE));
break;
case 0x5a:
!zPressed && !isTyping && _0x647929 == ![] && (zPressed = !![],
options['get'](_0x568fc6(0x1f0)) && (sendUint8(OPCODE_C2S_USEGOLD_SMALL_START),
isGoldUsing = !![]));
break;
case 0x58:
!xPressed && !isTyping && _0x647929 == ![] && (xPressed = !![],
options[_0x568fc6(0x197)](_0x568fc6(0x1f0)) && (sendUint8(OPCODE_C2S_USEGOLD_BIG_START),
isGoldUsing = !![]));
break;
case 0x46:
microphone['startRecord']();
break;
}
}
,
window[_0x2a4b69(0x28e)] = function(_0x95551a) {
var _0x40e56d = _0x2a4b69;
switch (_0x95551a[_0x40e56d(0x1cc)]) {
case 0x20:
spacePressed = ![];
break;
case 0x57:
wPressed = ![];
break;
case 0x31:
key1Pressed && (key1Pressed = ![]);
break;
case 0x32:
key2Pressed && (key2Pressed = ![]);
break;
case 0x51:
qPressed && (qPressed = ![]);
break;
case 0x45:
ePressed && (ePressed = ![],
isLockFood == 0x0 && sendUint8(OPCODE_C2S_EMITFOOD_STOP));
break;
case 0x41:
aPressed = ![];
break;
case 0x53:
sPressed = ![];
break;
case 0x5a:
zPressed && (zPressed = ![],
sendUint8(OPCODE_C2S_USEGOLD_SMALL_END),
isGoldUsing = ![]);
break;
case 0x58:
xPressed && (xPressed = ![],
sendUint8(OPCODE_C2S_USEGOLD_BIG_END),
isGoldUsing = ![]);
break;
case 0x46:
microphone['stopRecord']();
break;
}
}
;
const prog_cell = new function() {
var _0x350e48 = _0x2a4b69;
this['vertexShader'] = _0x350e48(0x251),
this[_0x350e48(0xe8)] = _0x350e48(0x360),
this['sliceCount'] = 0x40,
this['program'] = null,
this['buffer_radius'] = null,
this[_0x350e48(0x3d7)] = null,
this[_0x350e48(0x2c4)] = null,
this[_0x350e48(0x8a)] = null,
this[_0x350e48(0x33e)] = null,
this[_0x350e48(0x36b)] = null,
this[_0x350e48(0x301)] = null,
this['loc_canvasSize'] = null,
this['loc_position'] = null,
this['loc_size'] = null,
this['loc_sliceCount'] = null,
this[_0x350e48(0x3dd)] = null,
this[_0x350e48(0x190)] = null,
this['loc_spikeMod'] = null,
this[_0x350e48(0x3b7)] = null,
this['loc_alpha'] = null,
this[_0x350e48(0x3bd)] = 0x0,
this[_0x350e48(0x22e)] = 0x1,
this['init'] = function() {
var _0x43efee = _0x350e48;
this[_0x43efee(0x2d2)] = webgl[_0x43efee(0x3b4)](this['vertexShader'], this[_0x43efee(0xe8)]),
webgl['gl'][_0x43efee(0x267)](this[_0x43efee(0x2d2)]);
var _0x1e1dec = [];
for (var _0x44d9b5 = 0x0; _0x44d9b5 < this[_0x43efee(0x1c8)] + 0x2; _0x44d9b5++) {
_0x1e1dec[_0x43efee(0x328)](_0x44d9b5);
}
this[_0x43efee(0x2b7)] = webgl['gl'][_0x43efee(0x2ff)](),
webgl['gl'][_0x43efee(0x26d)](webgl['gl']['ARRAY_BUFFER'], this[_0x43efee(0x2b7)]),
webgl['gl']['bufferData'](webgl['gl'][_0x43efee(0x262)], new Float32Array(_0x1e1dec), webgl['gl'][_0x43efee(0x187)]),
this['loc_angle'] = webgl['gl'][_0x43efee(0x3e5)](this[_0x43efee(0x2d2)], _0x43efee(0x269)),
webgl['gl']['vertexAttribPointer'](this[_0x43efee(0x8a)], 0x1, webgl['gl']['FLOAT'], ![], 0x0, 0x0),
webgl['gl']['enableVertexAttribArray'](this[_0x43efee(0x8a)]);
var _0x1f62c4 = []
, _0x3a2180 = Math['PI'] * 0x2 / this['sliceCount'];
for (var _0x44d9b5 = 0x0; _0x44d9b5 < this[_0x43efee(0x1c8)] + 0x2; _0x44d9b5++) {
if (_0x44d9b5 == 0x0)
_0x1f62c4[_0x43efee(0x328)](0.5),
_0x1f62c4[_0x43efee(0x328)](0.5);
else {
var _0x4f3c3a = _0x44d9b5 * _0x3a2180
, _0xc724f2 = 0.5 + Math[_0x43efee(0x75)](_0x4f3c3a) * 0.5
, _0x3e9998 = 0.5 + Math[_0x43efee(0x356)](_0x4f3c3a) * 0.5;
_0x1f62c4[_0x43efee(0x328)](_0xc724f2),
_0x1f62c4[_0x43efee(0x328)](_0x3e9998);
}
}
this['buffer_texCoord'] = webgl['gl'][_0x43efee(0x2ff)](),
webgl['gl'][_0x43efee(0x26d)](webgl['gl'][_0x43efee(0x262)], this[_0x43efee(0x2c4)]),
webgl['gl'][_0x43efee(0x14a)](webgl['gl']['ARRAY_BUFFER'], new Float32Array(_0x1f62c4), webgl['gl'][_0x43efee(0x187)]),
this[_0x43efee(0x33e)] = webgl['gl'][_0x43efee(0x3e5)](this[_0x43efee(0x2d2)], _0x43efee(0x304)),
webgl['gl'][_0x43efee(0xfb)](this['loc_texcoord'], 0x2, webgl['gl'][_0x43efee(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x43efee(0x159)](this[_0x43efee(0x33e)]);
var _0x305e57 = webgl['gl'][_0x43efee(0x366)](this[_0x43efee(0x2d2)], _0x43efee(0x15c));
webgl['gl']['uniform1i'](_0x305e57, 0x0),
this[_0x43efee(0x36b)] = webgl['gl']['getUniformLocation'](this[_0x43efee(0x2d2)], _0x43efee(0x34d)),
this[_0x43efee(0x301)] = webgl['gl'][_0x43efee(0x366)](this['program'], _0x43efee(0x2a0)),
this['loc_canvasSize'] = webgl['gl'][_0x43efee(0x366)](this[_0x43efee(0x2d2)], 'u_canvasSize'),
this[_0x43efee(0x176)] = webgl['gl'][_0x43efee(0x366)](this['program'], 'u_position'),
this[_0x43efee(0x284)] = webgl['gl']['getUniformLocation'](this[_0x43efee(0x2d2)], 'u_size'),
this[_0x43efee(0x24f)] = webgl['gl'][_0x43efee(0x366)](this['program'], _0x43efee(0xf8)),
this[_0x43efee(0x3dd)] = webgl['gl']['getUniformLocation'](this[_0x43efee(0x2d2)], _0x43efee(0x161)),
this[_0x43efee(0x190)] = webgl['gl'][_0x43efee(0x366)](this[_0x43efee(0x2d2)], _0x43efee(0x16f)),
this['loc_spikeMod'] = webgl['gl']['getUniformLocation'](this['program'], _0x43efee(0x3e7)),
this[_0x43efee(0x3b7)] = webgl['gl'][_0x43efee(0x366)](this['program'], _0x43efee(0x3cb)),
this[_0x43efee(0x24a)] = webgl['gl']['getUniformLocation'](this[_0x43efee(0x2d2)], _0x43efee(0x231));
}
,
this[_0x350e48(0x211)] = function() {
var _0x2c5345 = _0x350e48;
if (webgl[_0x2c5345(0x31b)] == this)
return;
webgl['prog_last_switch'] = this,
webgl['gl'][_0x2c5345(0x267)](this[_0x2c5345(0x2d2)]),
webgl['gl']['enableVertexAttribArray'](this[_0x2c5345(0x8a)]),
webgl['gl'][_0x2c5345(0x26d)](webgl['gl']['ARRAY_BUFFER'], this[_0x2c5345(0x2b7)]),
webgl['gl'][_0x2c5345(0xfb)](this[_0x2c5345(0x8a)], 0x1, webgl['gl'][_0x2c5345(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x2c5345(0x159)](this[_0x2c5345(0x33e)]),
webgl['gl'][_0x2c5345(0x26d)](webgl['gl']['ARRAY_BUFFER'], this['buffer_texCoord']),
webgl['gl'][_0x2c5345(0xfb)](this['loc_texcoord'], 0x2, webgl['gl'][_0x2c5345(0x120)], ![], 0x0, 0x0);
}
,
this['drawInit'] = function(_0x5b6e4c, _0x301ad6, _0x212739) {
var _0x49110a = _0x350e48;
this['switch'](),
webgl['gl'][_0x49110a(0x30a)](this['loc_translate'], -cameraManager[_0x49110a(0x354)], -cameraManager[_0x49110a(0xcc)]),
webgl['gl'][_0x49110a(0x257)](this[_0x49110a(0x301)], cameraManager['scale']),
webgl['gl'][_0x49110a(0x30a)](this[_0x49110a(0x331)], webgl['gl']['canvas'][_0x49110a(0x335)], webgl['gl']['canvas'][_0x49110a(0x326)]),
webgl['gl'][_0x49110a(0x30a)](this[_0x49110a(0x176)], _0x5b6e4c[_0x49110a(0x394)], _0x5b6e4c[_0x49110a(0x320)]),
webgl['gl'][_0x49110a(0x257)](this['loc_size'], _0x5b6e4c[_0x49110a(0xe9)]),
webgl['gl'][_0x49110a(0x208)](this[_0x49110a(0x24f)], this[_0x49110a(0x1c8)]),
webgl['gl'][_0x49110a(0x128)](this[_0x49110a(0x3dd)], _0x5b6e4c['rgb_gl']),
webgl['gl'][_0x49110a(0x208)](this[_0x49110a(0x190)], _0x301ad6),
webgl['gl'][_0x49110a(0x257)](this['loc_alpha'], _0x212739),
_0x5b6e4c[_0x49110a(0x18a)] != null ? (webgl['gl']['uniform1i'](this[_0x49110a(0x319)], _0x5b6e4c[_0x49110a(0x18a)][_0x49110a(0xbe)]),
webgl['gl']['uniform1f'](this[_0x49110a(0x3b7)], _0x5b6e4c[_0x49110a(0x18a)][_0x49110a(0x201)])) : (webgl['gl'][_0x49110a(0x208)](this['loc_spikeMod'], 0x0),
webgl['gl']['uniform1f'](this['loc_spikeSize'], 0x0));
}
,
this[_0x350e48(0x1e5)] = function(_0x331640, _0x3c08f6) {
var _0x38ba92 = _0x350e48;
this[_0x38ba92(0x2a6)](_0x331640, _0x3c08f6, webgl[_0x38ba92(0x306)]),
webgl['gl']['drawArrays'](webgl['gl'][_0x38ba92(0x283)], 0x0, this[_0x38ba92(0x1c8)] + 0x2);
}
,
this['drawLine'] = function(_0xa7f0e4) {
var _0x1b0302 = _0x350e48;
this[_0x1b0302(0x2a6)](_0xa7f0e4, this[_0x1b0302(0x3bd)], 0x1),
webgl['gl'][_0x1b0302(0x128)](this[_0x1b0302(0x3dd)], ColorManager['Current_RGB_GL'][_0x1b0302(0xdd)]),
webgl['gl'][_0x1b0302(0xb2)](webgl['gl'][_0x1b0302(0x14f)], 0x1, this[_0x1b0302(0x1c8)] + 0x1);
}
;
}
()
, prog_font = new function() {
var _0x562f6f = _0x2a4b69;
this['vertexShader'] = _0x562f6f(0x205),
this[_0x562f6f(0xe8)] = _0x562f6f(0x20b),
this[_0x562f6f(0x2d2)] = null,
this[_0x562f6f(0x32d)] = null,
this[_0x562f6f(0x247)] = null,
this[_0x562f6f(0x147)] = [],
this[_0x562f6f(0x13f)] = [],
this['DRAWMODE_GAME'] = 0x0,
this['DRAWMODE_UI'] = 0x1,
this[_0x562f6f(0xc4)] = 0x0,
this[_0x562f6f(0x389)] = 0x0,
this['common_scaleH'] = 0x0,
this[_0x562f6f(0x31e)] = null,
this[_0x562f6f(0x33e)] = null,
this['loc_drawMode'] = null,
this[_0x562f6f(0x36b)] = null,
this['loc_scale'] = null,
this[_0x562f6f(0x331)] = null,
this[_0x562f6f(0x284)] = null,
this[_0x562f6f(0x3dd)] = null,
this[_0x562f6f(0x24a)] = null,
this['loc_position'] = null,
this[_0x562f6f(0xc6)] = null,
this[_0x562f6f(0x3de)] = null,
this[_0x562f6f(0x270)] = null,
this[_0x562f6f(0x188)] = null,
this[_0x562f6f(0x25f)] = async function(_0x44b832) {
var _0x28ef27 = _0x562f6f;
this[_0x28ef27(0x188)] = _0x44b832,
this[_0x28ef27(0x2d2)] = webgl[_0x28ef27(0x3b4)](this[_0x28ef27(0x226)], this[_0x28ef27(0xe8)]),
webgl['gl'][_0x28ef27(0x267)](this['program']),
this[_0x28ef27(0x132)](),
this[_0x28ef27(0x31e)] = webgl['gl'][_0x28ef27(0x3e5)](this[_0x28ef27(0x2d2)], _0x28ef27(0x21c)),
this[_0x28ef27(0x33e)] = webgl['gl'][_0x28ef27(0x3e5)](this[_0x28ef27(0x2d2)], 'a_texcoord'),
this[_0x28ef27(0x190)] = webgl['gl']['getUniformLocation'](this['program'], 'u_drawMode'),
this[_0x28ef27(0x36b)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], _0x28ef27(0x34d)),
this[_0x28ef27(0x301)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], 'u_scale'),
this[_0x28ef27(0x331)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], 'u_canvasSize'),
this[_0x28ef27(0x284)] = webgl['gl'][_0x28ef27(0x366)](this['program'], _0x28ef27(0x2b9)),
this[_0x28ef27(0x3dd)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], _0x28ef27(0x161)),
this[_0x28ef27(0x24a)] = webgl['gl'][_0x28ef27(0x366)](this['program'], _0x28ef27(0x231)),
this[_0x28ef27(0x176)] = webgl['gl'][_0x28ef27(0x366)](this['program'], _0x28ef27(0x2f4)),
this[_0x28ef27(0xc6)] = webgl['gl']['getUniformLocation'](this[_0x28ef27(0x2d2)], 'u_widthScale'),
this[_0x28ef27(0x3de)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], _0x28ef27(0x2c8)),
this[_0x28ef27(0x270)] = webgl['gl'][_0x28ef27(0x366)](this[_0x28ef27(0x2d2)], _0x28ef27(0x21f));
}
,
this[_0x562f6f(0x2a5)] = function() {
var _0x490575 = _0x562f6f;
this[_0x490575(0x32d)] = webgl['gl'][_0x490575(0x2ff)](),
webgl['gl']['bindBuffer'](webgl['gl'][_0x490575(0x262)], this['vertexBuffer']);
var _0x3c82df = [];
for (var _0x4af15a = 0x0; _0x4af15a < this[_0x490575(0x13f)]['length']; _0x4af15a++) {
_0x3c82df[_0x490575(0x328)](...[0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x1]);
}
webgl['gl'][_0x490575(0x14a)](webgl['gl'][_0x490575(0x262)], new Float32Array(_0x3c82df), webgl['gl'][_0x490575(0x187)]);
var _0x1177bd = webgl['gl'][_0x490575(0x3e5)](this['program'], _0x490575(0x21c));
webgl['gl'][_0x490575(0xfb)](_0x1177bd, 0x2, webgl['gl'][_0x490575(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x490575(0x159)](_0x1177bd);
}
,
this[_0x562f6f(0xba)] = function() {
var _0x39fca8 = _0x562f6f
, _0x31f762 = []
, _0x1c5b3e = 0x0;
for (var _0x5dd20f in this[_0x39fca8(0x13f)]) {
let _0x362d27 = this['fontMap'][_0x5dd20f];
_0x362d27['offset'] = _0x1c5b3e,
_0x1c5b3e++;
var _0xf7cd0b = _0x362d27['x'] / this[_0x39fca8(0x389)]
, _0x35de37 = _0x362d27['y'] / this[_0x39fca8(0x125)]
, _0x3174a3 = _0x362d27[_0x39fca8(0x335)] / this[_0x39fca8(0x389)]
, _0x16cf1d = _0x362d27[_0x39fca8(0x326)] / this[_0x39fca8(0x125)];
_0x31f762[_0x39fca8(0x328)](...[_0xf7cd0b, _0x35de37 + _0x16cf1d, _0xf7cd0b, _0x35de37, _0xf7cd0b + _0x3174a3, _0x35de37 + _0x16cf1d, _0xf7cd0b + _0x3174a3, _0x35de37]);
}
this[_0x39fca8(0x247)] = webgl['gl'][_0x39fca8(0x2ff)](),
webgl['gl'][_0x39fca8(0x26d)](webgl['gl']['ARRAY_BUFFER'], this[_0x39fca8(0x247)]),
webgl['gl'][_0x39fca8(0x14a)](webgl['gl']['ARRAY_BUFFER'], new Float32Array(_0x31f762), webgl['gl']['STATIC_DRAW']),
loc = webgl['gl'][_0x39fca8(0x3e5)](this['program'], _0x39fca8(0x304)),
webgl['gl'][_0x39fca8(0xfb)](loc, 0x2, webgl['gl'][_0x39fca8(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x39fca8(0x159)](loc),
loc = webgl['gl'][_0x39fca8(0x366)](this[_0x39fca8(0x2d2)], _0x39fca8(0x15c)),
webgl['gl'][_0x39fca8(0x208)](loc, 0x0);
}
,
this[_0x562f6f(0x132)] = async function() {
var _0x31f36f = _0x562f6f
, _0x27b1a3 = new XMLHttpRequest();
_0x27b1a3[_0x31f36f(0x237)] = ()=>{
var _0x1d896c = _0x31f36f;
this[_0x1d896c(0x216)](_0x27b1a3[_0x1d896c(0x1ac)]),
this['loadFontTexture'](_0x27b1a3[_0x1d896c(0x1ac)]),
this[_0x1d896c(0x298)](_0x27b1a3['responseXML']),
this[_0x1d896c(0xba)](),
this['initFontVertex']();
}
,
_0x27b1a3[_0x31f36f(0x212)] = ()=>{
var _0xece3f6 = _0x31f36f;
console[_0xece3f6(0x323)](_0xece3f6(0x3c4));
}
,
_0x27b1a3[_0x31f36f(0x1b4)](_0x31f36f(0x29d), this['drc'] + 'index.fnt'),
_0x27b1a3[_0x31f36f(0x3c2)] = _0x31f36f(0x184),
_0x27b1a3[_0x31f36f(0x27f)]();
}
,
this[_0x562f6f(0x216)] = function(_0x4dbfdc) {
var _0x3bd70f = _0x562f6f
, _0x1730a6 = _0x4dbfdc[_0x3bd70f(0x10b)](_0x3bd70f(0x3eb))[0x0]
, _0x4476ad = _0x4dbfdc[_0x3bd70f(0x10b)]('common')[0x0];
this[_0x3bd70f(0xc4)] = Math['abs'](_0x1730a6['attributes'][_0x3bd70f(0x3f8)][_0x3bd70f(0x1e9)]),
this[_0x3bd70f(0x389)] = Number(_0x4476ad['attributes'][_0x3bd70f(0x6c)][_0x3bd70f(0x1e9)]),
this[_0x3bd70f(0x125)] = Number(_0x4476ad['attributes'][_0x3bd70f(0x31c)][_0x3bd70f(0x1e9)]),
console[_0x3bd70f(0x323)](_0x3bd70f(0xf2), _0x1730a6, _0x4476ad);
}
,
this['loadFontMap'] = function(_0x317612) {
var _0x1f8d2d = _0x562f6f
, _0x531ce5 = _0x317612[_0x1f8d2d(0x10b)]('char');
console[_0x1f8d2d(0x323)](_0x1f8d2d(0x30b), _0x531ce5['length']),
this[_0x1f8d2d(0x13f)] = [];
for (var _0x368f3a of _0x531ce5) {
var _0x766037 = _0x368f3a[_0x1f8d2d(0x26a)]('id');
this[_0x1f8d2d(0x13f)][_0x766037] = {};
for (const _0x55e3a9 of _0x368f3a[_0x1f8d2d(0x367)]) {
this['fontMap'][_0x766037][_0x55e3a9[_0x1f8d2d(0x101)]] = Number(_0x55e3a9['value']);
}
this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0x386)] = this['fontMap'][_0x766037][_0x1f8d2d(0x335)] / this[_0x1f8d2d(0xc4)],
this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0x29f)] = this['fontMap'][_0x766037][_0x1f8d2d(0x326)] / this[_0x1f8d2d(0xc4)],
this['fontMap'][_0x766037][_0x1f8d2d(0xbf)] = this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0x36a)] / this[_0x1f8d2d(0xc4)],
this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0x35e)] = this['fontMap'][_0x766037][_0x1f8d2d(0x2f9)] / this[_0x1f8d2d(0xc4)],
this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0xca)] = this[_0x1f8d2d(0x13f)][_0x766037][_0x1f8d2d(0xd4)] / this[_0x1f8d2d(0xc4)];
}
}
,
this[_0x562f6f(0x173)] = function(_0x86139) {
var _0x45f8fb = _0x562f6f
, _0x48aaaa = _0x86139['querySelectorAll'](_0x45f8fb(0x3c7));
this['fontTexture'] = [];
for (var _0x2030a2 of _0x48aaaa) {
var _0x389769 = _0x2030a2['getAttribute']('id');
this[_0x45f8fb(0x147)][_0x389769] = {};
for (const _0x5680bd of _0x2030a2['attributes']) {
this[_0x45f8fb(0x147)][_0x389769][_0x5680bd[_0x45f8fb(0x101)]] = _0x5680bd['value'];
}
}
for (var _0x5e2e36 of this['fontTexture']) {
_0x5e2e36['img'] = new Image(),
_0x5e2e36['img']['src'] = _0x45f8fb(0x3e1) + this['drc'] + _0x5e2e36[_0x45f8fb(0x24d)],
_0x5e2e36[_0x45f8fb(0x37d)] = null,
_0x5e2e36[_0x45f8fb(0x1ff)][_0x45f8fb(0x237)] = function() {
var _0x4e6e17 = _0x45f8fb;
this[_0x4e6e17(0x37d)] = webgl['gl'][_0x4e6e17(0x8d)](),
webgl['gl'][_0x4e6e17(0x1ab)](webgl['gl'][_0x4e6e17(0x1c3)], this[_0x4e6e17(0x37d)]),
webgl['gl'][_0x4e6e17(0x129)](webgl['gl'][_0x4e6e17(0x1c3)], 0x0, webgl['gl'][_0x4e6e17(0x399)], webgl['gl'][_0x4e6e17(0x399)], webgl['gl']['UNSIGNED_BYTE'], this[_0x4e6e17(0x1ff)]),
webgl['gl']['texParameteri'](webgl['gl'][_0x4e6e17(0x1c3)], webgl['gl']['TEXTURE_MIN_FILTER'], webgl['gl'][_0x4e6e17(0x95)]),
webgl['gl'][_0x4e6e17(0x2d6)](webgl['gl']['TEXTURE_2D'], webgl['gl'][_0x4e6e17(0x88)], webgl['gl'][_0x4e6e17(0x95)]),
webgl['gl']['generateMipmap'](webgl['gl']['TEXTURE_2D']);
}
[_0x45f8fb(0x322)](_0x5e2e36);
}
}
,
this[_0x562f6f(0x211)] = function() {
var _0x386545 = _0x562f6f;
if (webgl[_0x386545(0x31b)] == this)
return;
webgl[_0x386545(0x31b)] = this,
webgl['gl']['useProgram'](this[_0x386545(0x2d2)]),
webgl['gl'][_0x386545(0x159)](this[_0x386545(0x31e)]),
webgl['gl'][_0x386545(0x26d)](webgl['gl']['ARRAY_BUFFER'], this[_0x386545(0x32d)]),
webgl['gl']['vertexAttribPointer'](this[_0x386545(0x31e)], 0x2, webgl['gl'][_0x386545(0x120)], ![], 0x0, 0x0),
webgl['gl']['enableVertexAttribArray'](this[_0x386545(0x33e)]),
webgl['gl']['bindBuffer'](webgl['gl']['ARRAY_BUFFER'], this[_0x386545(0x247)]),
webgl['gl'][_0x386545(0xfb)](this[_0x386545(0x33e)], 0x2, webgl['gl'][_0x386545(0x120)], ![], 0x0, 0x0);
}
,
this[_0x562f6f(0x1fe)] = function(_0x35541b) {
var _0x2086cd = _0x562f6f;
if (this[_0x2086cd(0x13f)]['length'] == 0x0)
return 0x0;
let _0x297340 = 0x0;
for (var _0x1da7ef = 0x0; _0x1da7ef < _0x35541b[_0x2086cd(0x395)]; _0x1da7ef++) {
let _0x18c362 = _0x35541b[_0x2086cd(0x292)](_0x1da7ef);
if (_0x18c362 == 'undefined' || _0x18c362 == null) {}
let _0x2e8d45 = this[_0x2086cd(0x13f)][_0x18c362];
if (_0x2e8d45 == null)
continue;
_0x297340 += _0x2e8d45[_0x2086cd(0xca)];
}
return _0x297340;
}
,
this[_0x562f6f(0x150)] = function(_0x65a097, _0x3b5b52) {
var _0x453520 = _0x562f6f;
let _0x2a675e = this['getTextWidth'](_0x65a097) * _0x3b5b52
, _0x11e278 = (webgl['gl'][_0x453520(0x3f9)][_0x453520(0x335)] - _0x2a675e) * 0.5;
return _0x11e278;
}
,
this['drawGame'] = function(_0x31ec58, _0x3d3a20, _0x25e4fe, _0x18abba, _0x5701ec, _0x504eb4) {
var _0x4b6dad = _0x562f6f;
if (this['fontTexture'][_0x4b6dad(0x395)] == 0x0)
return;
this[_0x4b6dad(0x211)](),
webgl['gl']['uniform1i'](this[_0x4b6dad(0x190)], this['DRAWMODE_GAME']),
webgl['gl']['uniform2f'](this[_0x4b6dad(0x36b)], -cameraManager[_0x4b6dad(0x354)], -cameraManager[_0x4b6dad(0xcc)]),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0x301)], cameraManager[_0x4b6dad(0x3b8)]),
webgl['gl'][_0x4b6dad(0x30a)](this[_0x4b6dad(0x331)], webgl['gl'][_0x4b6dad(0x3f9)][_0x4b6dad(0x335)], webgl['gl'][_0x4b6dad(0x3f9)][_0x4b6dad(0x326)]),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0x284)], _0x5701ec),
webgl['gl'][_0x4b6dad(0x128)](this[_0x4b6dad(0x3dd)], _0x25e4fe),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0x24a)], _0x18abba),
_0x31ec58 -= this['getTextWidth'](_0x504eb4) * 0.5 * _0x5701ec,
_0x3d3a20 -= 0.5 * _0x5701ec;
for (var _0x4e751f = 0x0; _0x4e751f < _0x504eb4[_0x4b6dad(0x395)]; _0x4e751f++) {
let _0x4b97d7 = _0x504eb4[_0x4b6dad(0x292)](_0x4e751f)
, _0x1048f1 = this[_0x4b6dad(0x13f)][_0x4b97d7];
if (_0x1048f1 == null)
continue;
webgl['gl'][_0x4b6dad(0x30a)](this[_0x4b6dad(0x176)], _0x31ec58, _0x3d3a20),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0xc6)], _0x1048f1['widthScale']),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0x3de)], _0x1048f1[_0x4b6dad(0x29f)]),
webgl['gl'][_0x4b6dad(0x257)](this[_0x4b6dad(0x270)], _0x1048f1['yoffsetScale']),
webgl['gl'][_0x4b6dad(0x1ab)](webgl['gl'][_0x4b6dad(0x1c3)], this[_0x4b6dad(0x147)][_0x1048f1[_0x4b6dad(0x3c7)]][_0x4b6dad(0x37d)]),
webgl['gl'][_0x4b6dad(0xb2)](webgl['gl']['TRIANGLE_STRIP'], _0x1048f1['offset'] * 0x4, 0x4),
_0x31ec58 += _0x5701ec * _0x1048f1[_0x4b6dad(0xca)];
}
}
,
this[_0x562f6f(0x164)] = function(_0x52828a, _0x38b67a, _0x112dc0, _0x46f344, _0x13d7ee, _0x3b5dfd) {
var _0x14707a = _0x562f6f;
if (this['fontTexture'][_0x14707a(0x395)] == 0x0)
return;
this[_0x14707a(0x211)](),
webgl['gl'][_0x14707a(0x208)](this[_0x14707a(0x190)], this[_0x14707a(0x38c)]),
webgl['gl']['uniform2f'](this[_0x14707a(0x36b)], -cameraManager[_0x14707a(0x354)], -cameraManager['translate_y_current']),
webgl['gl'][_0x14707a(0x257)](this[_0x14707a(0x301)], cameraManager[_0x14707a(0x3b8)]),
webgl['gl']['uniform2f'](this['loc_canvasSize'], webgl['gl'][_0x14707a(0x3f9)][_0x14707a(0x335)], webgl['gl']['canvas']['height']),
webgl['gl'][_0x14707a(0x257)](this[_0x14707a(0x284)], _0x13d7ee),
webgl['gl'][_0x14707a(0x128)](this[_0x14707a(0x3dd)], _0x112dc0),
webgl['gl'][_0x14707a(0x257)](this[_0x14707a(0x24a)], _0x46f344);
var _0x1462c9 = 0x0;
for (var _0x2f75d1 = 0x0; _0x2f75d1 < _0x3b5dfd[_0x14707a(0x395)]; _0x2f75d1++) {
let _0x24e114 = _0x3b5dfd[_0x14707a(0x292)](_0x2f75d1)
, _0x3ccc96 = this[_0x14707a(0x13f)][_0x24e114];
if (_0x3ccc96 == null)
continue;
webgl['gl'][_0x14707a(0x30a)](this[_0x14707a(0x176)], _0x52828a, _0x38b67a),
webgl['gl'][_0x14707a(0x257)](this[_0x14707a(0xc6)], _0x3ccc96['widthScale']),
webgl['gl']['uniform1f'](this[_0x14707a(0x3de)], _0x3ccc96[_0x14707a(0x29f)]),
webgl['gl'][_0x14707a(0x257)](this[_0x14707a(0x270)], _0x3ccc96[_0x14707a(0x35e)]),
webgl['gl'][_0x14707a(0x1ab)](webgl['gl']['TEXTURE_2D'], this[_0x14707a(0x147)][_0x3ccc96[_0x14707a(0x3c7)]][_0x14707a(0x37d)]),
webgl['gl'][_0x14707a(0xb2)](webgl['gl'][_0x14707a(0xde)], _0x3ccc96[_0x14707a(0x29c)] * 0x4, 0x4);
let _0x5f4647 = _0x13d7ee * _0x3ccc96[_0x14707a(0xca)];
_0x52828a += _0x5f4647,
_0x1462c9 += _0x5f4647;
}
return _0x1462c9;
}
;
}
()
, prog_rect = new function() {
var _0x4d529f = _0x2a4b69;
this[_0x4d529f(0x226)] = _0x4d529f(0x39a),
this[_0x4d529f(0xe8)] = _0x4d529f(0x108),
this[_0x4d529f(0x2d2)] = null,
this[_0x4d529f(0x32d)] = null,
this[_0x4d529f(0x31e)] = null,
this[_0x4d529f(0x331)] = null,
this[_0x4d529f(0x176)] = null,
this[_0x4d529f(0x3f8)] = null,
this[_0x4d529f(0x2e4)] = null,
this['alpha'] = null,
this[_0x4d529f(0x25f)] = function() {
var _0x1fa43d = _0x4d529f;
this[_0x1fa43d(0x2d2)] = webgl[_0x1fa43d(0x3b4)](this[_0x1fa43d(0x226)], this[_0x1fa43d(0xe8)]),
webgl['gl'][_0x1fa43d(0x267)](this[_0x1fa43d(0x2d2)]);
var _0xb6cbc5 = [0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x1];
this[_0x1fa43d(0x32d)] = webgl['gl'][_0x1fa43d(0x2ff)](),
webgl['gl'][_0x1fa43d(0x26d)](webgl['gl'][_0x1fa43d(0x262)], this['vertexBuffer']),
webgl['gl'][_0x1fa43d(0x14a)](webgl['gl'][_0x1fa43d(0x262)], new Float32Array(_0xb6cbc5), webgl['gl']['STATIC_DRAW']),
this[_0x1fa43d(0x31e)] = webgl['gl'][_0x1fa43d(0x3e5)](this['program'], 'a_vertex'),
webgl['gl'][_0x1fa43d(0xfb)](this[_0x1fa43d(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0),
webgl['gl'][_0x1fa43d(0x159)](this[_0x1fa43d(0x31e)]),
this[_0x1fa43d(0x331)] = webgl['gl']['getUniformLocation'](this[_0x1fa43d(0x2d2)], _0x1fa43d(0xe1)),
this[_0x1fa43d(0x176)] = webgl['gl']['getUniformLocation'](this[_0x1fa43d(0x2d2)], _0x1fa43d(0x2f4)),
this[_0x1fa43d(0x3f8)] = webgl['gl'][_0x1fa43d(0x366)](this[_0x1fa43d(0x2d2)], _0x1fa43d(0x2b9)),
this['rgb'] = webgl['gl'][_0x1fa43d(0x366)](this[_0x1fa43d(0x2d2)], 'u_rgb'),
this[_0x1fa43d(0x306)] = webgl['gl'][_0x1fa43d(0x366)](this[_0x1fa43d(0x2d2)], _0x1fa43d(0x231));
}
,
this[_0x4d529f(0x211)] = function() {
var _0x5a06a2 = _0x4d529f;
if (webgl[_0x5a06a2(0x31b)] == this)
return;
webgl[_0x5a06a2(0x31b)] = this,
webgl['gl'][_0x5a06a2(0x267)](this['program']),
webgl['gl'][_0x5a06a2(0x159)](this[_0x5a06a2(0x31e)]),
webgl['gl'][_0x5a06a2(0x26d)](webgl['gl'][_0x5a06a2(0x262)], this['vertexBuffer']),
webgl['gl'][_0x5a06a2(0xfb)](this[_0x5a06a2(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0);
}
,
this[_0x4d529f(0x1e5)] = function(_0x3d0d2c, _0x58cb36, _0xc1c0e6, _0x964197, _0x1cb344, _0x61462f) {
var _0x21bda6 = _0x4d529f;
this[_0x21bda6(0x211)](),
webgl['gl'][_0x21bda6(0x30a)](this[_0x21bda6(0x331)], webgl['gl']['canvas'][_0x21bda6(0x335)], webgl['gl'][_0x21bda6(0x3f9)]['height']),
webgl['gl']['uniform2f'](this[_0x21bda6(0x176)], _0x3d0d2c, _0x58cb36),
webgl['gl'][_0x21bda6(0x30a)](this['size'], _0xc1c0e6, _0x964197),
webgl['gl'][_0x21bda6(0x128)](this['rgb'], _0x1cb344),
webgl['gl'][_0x21bda6(0x257)](this[_0x21bda6(0x306)], _0x61462f),
webgl['gl']['drawArrays'](webgl['gl']['TRIANGLE_STRIP'], 0x0, 0x4);
}
;
}
()
, prog_rectT = new function() {
var _0xb35697 = _0x2a4b69;
this[_0xb35697(0x226)] = '\x0a\x09attribute\x20vec2\x20a_vertex;\x0a\x09attribute\x20vec2\x20a_texcoord;\x0a\x0a\x09uniform\x20vec2\x20u_canvasSize;\x0a\x09uniform\x20vec2\x20u_position;//\x20yazı\x20pozisyonu\x0a\x09uniform\x20vec2\x20u_size;\x0a\x09uniform\x20int\x20u_bottomToTop;\x0a\x09uniform\x20int\x20u_rightToLeft;\x0a\x0a\x09varying\x20vec2\x20v_texcoord;\x0a\x09\x0a\x09void\x20main(){\x0a\x09\x09vec2\x20pixelScale\x20=\x20vec2(2.0)/u_canvasSize;\x0a\x0a\x09\x09vec2\x20p\x20=\x20a_vertex.xy\x20*\x20u_size\x20*\x20vec2(1,\x20-1);\x0a\x09\x09\x0a\x09\x09if\x20(\x20u_bottomToTop==1\x20){\x0a\x09\x09\x09p.y\x20+=\x20u_position.y\x20-\x20u_canvasSize.y*.5;\x0a\x09\x09}else{\x0a\x09\x09\x09p.y\x20+=\x20-u_position.y\x20+\x20u_canvasSize.y*.5;\x0a\x09\x09}\x0a\x0a\x09\x09if\x20(\x20u_rightToLeft==1\x20){\x0a\x09\x09\x09p.x\x20+=\x20-u_position.x\x20+\x20u_canvasSize.x*.5;\x0a\x09\x09}else{\x0a\x09\x09\x09p.x\x20+=\x20u_position.x\x20-\x20u_canvasSize.x*.5;\x0a\x09\x09}\x0a\x0a\x09\x09p\x20*=\x20pixelScale;\x0a\x09\x09gl_Position\x20=\x20vec4(p.xy,\x200,\x201);\x0a\x0a\x09\x09v_texcoord\x20=\x20a_texcoord;\x0a\x09}\x0a\x09',
this[_0xb35697(0xe8)] = _0xb35697(0x388),
this[_0xb35697(0x2d2)] = null,
this['vertexBuffer'] = null,
this['textureBuffer'] = null,
this[_0xb35697(0x31e)] = null,
this[_0xb35697(0x33e)] = null,
this[_0xb35697(0x331)] = null,
this['loc_position'] = null,
this['loc_texture'] = null,
this[_0xb35697(0x284)] = null,
this[_0xb35697(0x25f)] = function() {
var _0x4d775d = _0xb35697;
this[_0x4d775d(0x2d2)] = webgl[_0x4d775d(0x3b4)](this[_0x4d775d(0x226)], this[_0x4d775d(0xe8)]),
webgl['gl'][_0x4d775d(0x267)](this[_0x4d775d(0x2d2)]);
var _0x2920ab = [0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x1]
, _0xff1e07 = [0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x1];
this[_0x4d775d(0x32d)] = webgl['gl'][_0x4d775d(0x2ff)](),
webgl['gl'][_0x4d775d(0x26d)](webgl['gl']['ARRAY_BUFFER'], this[_0x4d775d(0x32d)]),
webgl['gl'][_0x4d775d(0x14a)](webgl['gl'][_0x4d775d(0x262)], new Float32Array(_0x2920ab), webgl['gl'][_0x4d775d(0x187)]),
this[_0x4d775d(0x31e)] = webgl['gl']['getAttribLocation'](this[_0x4d775d(0x2d2)], _0x4d775d(0x21c)),
webgl['gl'][_0x4d775d(0xfb)](this[_0x4d775d(0x31e)], 0x2, webgl['gl'][_0x4d775d(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x4d775d(0x159)](this['loc_vertex']),
this[_0x4d775d(0x247)] = webgl['gl']['createBuffer'](),
webgl['gl']['bindBuffer'](webgl['gl'][_0x4d775d(0x262)], this[_0x4d775d(0x247)]),
webgl['gl'][_0x4d775d(0x14a)](webgl['gl'][_0x4d775d(0x262)], new Float32Array(_0xff1e07), webgl['gl'][_0x4d775d(0x187)]),
this['loc_texcoord'] = webgl['gl']['getAttribLocation'](this[_0x4d775d(0x2d2)], _0x4d775d(0x304)),
webgl['gl'][_0x4d775d(0xfb)](this[_0x4d775d(0x33e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0),
webgl['gl'][_0x4d775d(0x159)](this['loc_texcoord']),
this[_0x4d775d(0x331)] = webgl['gl'][_0x4d775d(0x366)](this[_0x4d775d(0x2d2)], _0x4d775d(0xe1)),
this[_0x4d775d(0x176)] = webgl['gl'][_0x4d775d(0x366)](this[_0x4d775d(0x2d2)], _0x4d775d(0x2f4)),
this[_0x4d775d(0x284)] = webgl['gl'][_0x4d775d(0x366)](this['program'], _0x4d775d(0x2b9)),
this['loc_bottomToTop'] = webgl['gl'][_0x4d775d(0x366)](this[_0x4d775d(0x2d2)], _0x4d775d(0x36e)),
this[_0x4d775d(0xc1)] = webgl['gl']['getUniformLocation'](this['program'], 'u_rightToLeft');
}
,
this[_0xb35697(0x211)] = function() {
var _0x447c01 = _0xb35697;
if (webgl[_0x447c01(0x31b)] == this)
return;
webgl[_0x447c01(0x31b)] = this,
webgl['gl'][_0x447c01(0x267)](this[_0x447c01(0x2d2)]),
webgl['gl'][_0x447c01(0x159)](this[_0x447c01(0x31e)]),
webgl['gl'][_0x447c01(0x26d)](webgl['gl'][_0x447c01(0x262)], this[_0x447c01(0x32d)]),
webgl['gl'][_0x447c01(0xfb)](this[_0x447c01(0x31e)], 0x2, webgl['gl'][_0x447c01(0x120)], ![], 0x0, 0x0),
webgl['gl'][_0x447c01(0x159)](this[_0x447c01(0x33e)]),
webgl['gl'][_0x447c01(0x26d)](webgl['gl'][_0x447c01(0x262)], this[_0x447c01(0x247)]),
webgl['gl'][_0x447c01(0xfb)](this[_0x447c01(0x33e)], 0x2, webgl['gl'][_0x447c01(0x120)], ![], 0x0, 0x0);
}
,
this['draw'] = function(_0x2ffd91, _0x11b674, _0x503b8a, _0x2cec02, _0x244df2, _0xe479d9) {
var _0x202bd0 = _0xb35697;
this['switch'](),
webgl['gl']['uniform2f'](this[_0x202bd0(0x331)], webgl['gl'][_0x202bd0(0x3f9)][_0x202bd0(0x335)], webgl['gl'][_0x202bd0(0x3f9)]['height']),
webgl['gl']['uniform2f'](this['loc_position'], _0x2ffd91, _0x11b674),
webgl['gl'][_0x202bd0(0x30a)](this[_0x202bd0(0x284)], _0x503b8a, _0x2cec02),
webgl['gl'][_0x202bd0(0x208)](this['loc_bottomToTop'], _0x244df2),
webgl['gl'][_0x202bd0(0x208)](this[_0x202bd0(0xc1)], _0xe479d9),
webgl['gl'][_0x202bd0(0xb2)](webgl['gl']['TRIANGLE_STRIP'], 0x0, 0x4);
}
;
}
()
, prog_line = new function() {
var _0x589296 = _0x2a4b69;
this[_0x589296(0x226)] = '\x0a\x09attribute\x20vec2\x20a_vertex;\x0a\x0a\x09uniform\x20vec2\x20u_canvasSize;\x0a\x09uniform\x20float\x20u_scale;//\x20zoom\x0a\x09uniform\x20vec2\x20u_translate;//\x20kamera\x20pozisyonu\x0a\x09uniform\x20vec2\x20u_position;\x0a\x09\x0a\x09void\x20main(){\x0a\x09\x09vec2\x20pixelScale\x20=\x20vec2(2.0)/u_canvasSize;\x0a\x0a\x09\x09vec2\x20p\x20=\x20u_translate\x20+\x20u_position\x20+\x20a_vertex;\x0a\x0a\x09\x09p\x20*=\x20pixelScale\x20*\x20u_scale\x20*\x20vec2(1,\x20-1);\x0a\x0a\x09\x09gl_Position\x20=\x20vec4(p.xy,\x200,\x201);\x0a\x09}\x0a\x09',
this['fragmentShader'] = '\x0a\x09precision\x20mediump\x20float;\x0a\x0a\x09uniform\x20vec3\x20u_rgb;\x0a\x0a\x09void\x20main(){\x0a\x09\x09gl_FragColor\x20=\x20vec4(u_rgb,\x201.);\x0a\x09}',
this[_0x589296(0x2d2)] = null,
this[_0x589296(0x32d)] = null,
this[_0x589296(0x31e)] = null,
this[_0x589296(0x331)] = null,
this[_0x589296(0x176)] = null,
this[_0x589296(0x301)] = null,
this['loc_translate'] = null,
this[_0x589296(0x3dd)] = null,
this[_0x589296(0x25f)] = function() {
var _0x2db855 = _0x589296;
this[_0x2db855(0x2d2)] = webgl['createProgramFromCode'](this['vertexShader'], this[_0x2db855(0xe8)]),
webgl['gl'][_0x2db855(0x267)](this[_0x2db855(0x2d2)]);
var _0x577765 = [0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x1];
this[_0x2db855(0x32d)] = webgl['gl'][_0x2db855(0x2ff)](),
webgl['gl'][_0x2db855(0x26d)](webgl['gl'][_0x2db855(0x262)], this['vertexBuffer']),
webgl['gl'][_0x2db855(0x14a)](webgl['gl'][_0x2db855(0x262)], new Float32Array(_0x577765), webgl['gl']['STATIC_DRAW']),
this['loc_vertex'] = webgl['gl']['getAttribLocation'](this[_0x2db855(0x2d2)], _0x2db855(0x21c)),
webgl['gl'][_0x2db855(0xfb)](this[_0x2db855(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0),
webgl['gl'][_0x2db855(0x159)](this[_0x2db855(0x31e)]),
this['loc_canvasSize'] = webgl['gl'][_0x2db855(0x366)](this[_0x2db855(0x2d2)], _0x2db855(0xe1)),
this[_0x2db855(0x176)] = webgl['gl']['getUniformLocation'](this[_0x2db855(0x2d2)], _0x2db855(0x2f4)),
this[_0x2db855(0x301)] = webgl['gl']['getUniformLocation'](this[_0x2db855(0x2d2)], _0x2db855(0x2a0)),
this[_0x2db855(0x36b)] = webgl['gl']['getUniformLocation'](this['program'], 'u_translate'),
this[_0x2db855(0x3dd)] = webgl['gl'][_0x2db855(0x366)](this[_0x2db855(0x2d2)], _0x2db855(0x161));
}
,
this[_0x589296(0x211)] = function() {
var _0x242769 = _0x589296;
if (webgl[_0x242769(0x31b)] == this)
return;
webgl[_0x242769(0x31b)] = this,
webgl['gl'][_0x242769(0x267)](this[_0x242769(0x2d2)]),
webgl['gl'][_0x242769(0x159)](this[_0x242769(0x31e)]),
webgl['gl'][_0x242769(0x26d)](webgl['gl'][_0x242769(0x262)], this[_0x242769(0x32d)]),
webgl['gl']['vertexAttribPointer'](this[_0x242769(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0);
}
,
this[_0x589296(0x1e5)] = function(_0x579e81, _0x7d1901, _0x3ea20d, _0x364fd5, _0x1b1337) {
var _0x489d4c = _0x589296;
this[_0x489d4c(0x211)](),
webgl['gl'][_0x489d4c(0x26d)](webgl['gl'][_0x489d4c(0x262)], this[_0x489d4c(0x32d)]),
webgl['gl'][_0x489d4c(0x14a)](webgl['gl'][_0x489d4c(0x262)], new Float32Array(_0x3ea20d), webgl['gl'][_0x489d4c(0x187)]),
webgl['gl'][_0x489d4c(0x30a)](this[_0x489d4c(0x36b)], -cameraManager[_0x489d4c(0x354)], -cameraManager[_0x489d4c(0xcc)]),
webgl['gl'][_0x489d4c(0x257)](this['loc_scale'], cameraManager['scale']),
webgl['gl']['uniform2f'](this[_0x489d4c(0x331)], webgl['gl'][_0x489d4c(0x3f9)][_0x489d4c(0x335)], webgl['gl'][_0x489d4c(0x3f9)][_0x489d4c(0x326)]),
webgl['gl'][_0x489d4c(0x30a)](this[_0x489d4c(0x176)], _0x579e81, _0x7d1901),
webgl['gl'][_0x489d4c(0x128)](this[_0x489d4c(0x3dd)], _0x1b1337);
let _0x3a95b6 = _0x3ea20d['length'] / 0x2;
var _0x1fe042;
_0x364fd5 ? _0x1fe042 = webgl['gl'][_0x489d4c(0x14f)] : _0x1fe042 = webgl['gl']['LINES'],
webgl['gl'][_0x489d4c(0xb2)](_0x1fe042, 0x0, _0x3a95b6);
}
;
}
()
, prog_background = new function() {
var _0x4b0b87 = _0x2a4b69;
this[_0x4b0b87(0x226)] = '\x0a\x09attribute\x20vec2\x20a_vertex;\x0a\x0a\x09uniform\x20vec2\x20u_canvasSize;\x0a\x09uniform\x20float\x20u_scale;//\x20zoom\x0a\x09uniform\x20vec2\x20u_translate;//\x20kamera\x20pozisyonu\x0a\x09\x0a\x09void\x20main(){\x0a\x09\x09vec2\x20pixelScale\x20=\x20vec2(2.0)/u_canvasSize;\x0a\x0a\x09\x09vec2\x20p\x20=\x20a_vertex.xy\x20*\x20vec2(1,\x20-1)*u_scale;\x0a\x09\x09\x0a\x09\x09//p\x20-=\x20u_canvasSize*vec2(0.5,\x20-0.5);\x0a\x0a\x09\x09p.x\x20+=\x20u_translate.x*u_scale;\x0a\x09\x09p.y\x20-=\x20u_translate.y*u_scale;\x0a\x0a\x09\x09p\x20*=\x20pixelScale;\x0a\x09\x09gl_Position\x20=\x20vec4(p.xy,\x200,\x201);\x0a\x09}\x0a\x09',
this['fragmentShader'] = _0x4b0b87(0xb0),
this[_0x4b0b87(0x2d2)] = null,
this['vertexBuffer'] = null,
this[_0x4b0b87(0x7e)] = 0x0,
this['loc_vertex'] = null,
this[_0x4b0b87(0x36b)] = null,
this[_0x4b0b87(0x301)] = null,
this[_0x4b0b87(0x331)] = null,
this[_0x4b0b87(0x252)] = null,
this[_0x4b0b87(0x373)] = function() {
var _0xcc24e5 = _0x4b0b87;
this[_0xcc24e5(0x2d2)] = webgl[_0xcc24e5(0x3b4)](this['vertexShader'], this['fragmentShader']),
webgl['gl']['useProgram'](this[_0xcc24e5(0x2d2)]);
}
,
this['initBuffer'] = function() {
var _0x36b1fe = _0x4b0b87
, _0x372756 = 0x64
, _0x369e4b = [leftPos, topPos, rightPos, topPos, rightPos, bottomPos, leftPos, bottomPos];
this[_0x36b1fe(0x7e)] = 0x0;
for (var _0x4f4aab = leftPos + _0x372756; _0x4f4aab <= rightPos; _0x4f4aab += _0x372756) {
this[_0x36b1fe(0x7e)]++,
_0x369e4b[_0x36b1fe(0x328)](...[_0x4f4aab, topPos, _0x4f4aab, bottomPos]);
}
for (var _0x4da8aa = topPos + _0x372756; _0x4da8aa <= bottomPos; _0x4da8aa += _0x372756) {
this[_0x36b1fe(0x7e)]++,
_0x369e4b[_0x36b1fe(0x328)](...[leftPos, _0x4da8aa, rightPos, _0x4da8aa]);
}
this[_0x36b1fe(0x32d)] == null && (this['vertexBuffer'] = webgl['gl']['createBuffer']()),
webgl['gl'][_0x36b1fe(0x26d)](webgl['gl'][_0x36b1fe(0x262)], this[_0x36b1fe(0x32d)]),
webgl['gl'][_0x36b1fe(0x14a)](webgl['gl']['ARRAY_BUFFER'], new Float32Array(_0x369e4b), webgl['gl'][_0x36b1fe(0x187)]),
this[_0x36b1fe(0x31e)] = webgl['gl'][_0x36b1fe(0x3e5)](this[_0x36b1fe(0x2d2)], _0x36b1fe(0x21c)),
webgl['gl'][_0x36b1fe(0xfb)](this[_0x36b1fe(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0),
webgl['gl'][_0x36b1fe(0x159)](this[_0x36b1fe(0x31e)]),
this[_0x36b1fe(0x36b)] = webgl['gl'][_0x36b1fe(0x366)](this[_0x36b1fe(0x2d2)], 'u_translate'),
this[_0x36b1fe(0x301)] = webgl['gl']['getUniformLocation'](this[_0x36b1fe(0x2d2)], 'u_scale'),
this[_0x36b1fe(0x331)] = webgl['gl'][_0x36b1fe(0x366)](this[_0x36b1fe(0x2d2)], 'u_canvasSize'),
this[_0x36b1fe(0x252)] = webgl['gl'][_0x36b1fe(0x366)](this[_0x36b1fe(0x2d2)], _0x36b1fe(0x152));
}
,
this['switch'] = function() {
var _0x2f003f = _0x4b0b87;
if (webgl[_0x2f003f(0x31b)] == this)
return;
webgl[_0x2f003f(0x31b)] = this,
webgl['gl'][_0x2f003f(0x267)](this[_0x2f003f(0x2d2)]),
webgl['gl']['enableVertexAttribArray'](this['loc_vertex']),
webgl['gl'][_0x2f003f(0x26d)](webgl['gl'][_0x2f003f(0x262)], this[_0x2f003f(0x32d)]),
webgl['gl'][_0x2f003f(0xfb)](this[_0x2f003f(0x31e)], 0x2, webgl['gl']['FLOAT'], ![], 0x0, 0x0);
}
,
this[_0x4b0b87(0x1e5)] = function() {
var _0x44faee = _0x4b0b87;
if (this['program'] == null || this[_0x44faee(0x32d)] == null)
return;
this[_0x44faee(0x211)](),
webgl['gl'][_0x44faee(0x30a)](this[_0x44faee(0x36b)], -cameraManager[_0x44faee(0x354)], -cameraManager['translate_y_current']),
webgl['gl']['uniform1f'](this[_0x44faee(0x301)], cameraManager['scale']),
webgl['gl'][_0x44faee(0x30a)](this['loc_canvasSize'], webgl['gl'][_0x44faee(0x3f9)][_0x44faee(0x335)], webgl['gl']['canvas']['height']),
webgl['gl'][_0x44faee(0x3f7)](this[_0x44faee(0x252)], [0x0, cameraManager[_0x44faee(0x3b8)], 0x0, cameraManager['scale']]),
webgl['gl']['drawArrays'](webgl['gl'][_0x44faee(0x17e)], 0x4, this['gridLineCount'] * 0x2),
webgl['gl'][_0x44faee(0x3f7)](this[_0x44faee(0x252)], [cameraManager['scale'] * 0x32, 0x0, 0x0, 0x1]),
webgl['gl'][_0x44faee(0xb2)](webgl['gl']['LINE_LOOP'], 0x0, 0x4);
}
;
}
();
async function document_ready() {
var _0x215965 = _0x2a4b69;
options[_0x215965(0x25f)](),
options[_0x215965(0x126)](trans[0x157], 'showSkin', !![], null),
options[_0x215965(0x126)](trans[0x156], 'showName', !![], null);
!isMobile ? options[_0x215965(0x126)](trans[0x6], 'showDarkTheme', !![], function() {
var _0x1dd958 = _0x215965;
ColorManager[_0x1dd958(0x195)]();
}) : options[_0x215965(0xc5)](_0x215965(0x3f0), !![]);
ColorManager[_0x215965(0x195)](),
options['addYesNoSetting'](trans[0xe], _0x215965(0x2ba), !![], null),
options['addYesNoSetting'](trans[0xf], 'showScore', !![], null),
options[_0x215965(0x126)](trans[0x4a], 'simpleGreen', !![], null),
options[_0x215965(0x126)](_0x215965(0x220), _0x215965(0x1f0), !![], null),
options['addYesNoSetting'](trans[0x101], 'scopeAround', !![], null),
options[_0x215965(0x126)](trans[0x112], _0x215965(0x22f), !![], null);
!isMobile && options[_0x215965(0x126)](trans[0x8], _0x215965(0x244), ![], function() {
var _0x31d86d = _0x215965;
options[_0x31d86d(0x197)](_0x31d86d(0x244)) ? $(DIV_CHAT)[_0x31d86d(0xff)]() : $(DIV_CHAT)[_0x31d86d(0x3ed)]();
});
options[_0x215965(0x126)](trans[0x12c], _0x215965(0x3bf), !![], null),
options[_0x215965(0x126)](trans[0xb5], _0x215965(0xc0), !![], null),
options[_0x215965(0x126)](trans[0x12f], 'quickSplit', ![], null),
options[_0x215965(0x126)](trans[0x142], _0x215965(0x27a), !![], null);
isMobile ? options[_0x215965(0x126)](trans[0x158], 'fullScreen', !![], null) : options[_0x215965(0x126)](trans[0x158], _0x215965(0x10e), ![], null);
options[_0x215965(0x126)]('GL', _0x215965(0x2fa), ![], function() {
var _0x5bbfd3 = _0x215965;
options[_0x5bbfd3(0x197)](_0x5bbfd3(0x2fa)) ? (renderMode = RENDERMODE_GL,
$('#canvas')[_0x5bbfd3(0xff)](),
$(_0x5bbfd3(0x214))[_0x5bbfd3(0x3ed)]()) : (renderMode = RENDERMODE_CTX,
$(_0x5bbfd3(0xbc))[_0x5bbfd3(0x3ed)](),
$(_0x5bbfd3(0x214))[_0x5bbfd3(0xff)]());
});
isMobile ? (chatFilter = document[_0x215965(0x19e)]('chatFilter_mobile'),
$('#settings')[_0x215965(0xff)](),
$('#idSolMenu')[_0x215965(0xff)](),
$(_0x215965(0x236))[_0x215965(0x391)](function() {
var _0x4a7f8c = _0x215965;
$(_0x4a7f8c(0x92))[_0x4a7f8c(0x3ed)](),
$(_0x4a7f8c(0x374))[_0x4a7f8c(0xff)]();
}),
$(_0x215965(0x218))[_0x215965(0x391)](function() {
var _0xa93f9a = _0x215965;
$(_0xa93f9a(0x92))['show'](),
$(_0xa93f9a(0x376))[_0xa93f9a(0xff)]();
}),
$(_0x215965(0x2fd))[_0x215965(0x391)](function() {
var _0x48bfbe = _0x215965;
$(_0x48bfbe(0x92))[_0x48bfbe(0xff)](),
$('#settingsPopup')[_0x48bfbe(0x3ed)]();
}),
$(_0x215965(0x1b5))[_0x215965(0x391)](function() {
var _0x29b2b0 = _0x215965;
$(_0x29b2b0(0x92))['hide'](),
$('#solMenuPopup')[_0x29b2b0(0x3ed)]();
}),
$('#imgBanner')['attr'](_0x215965(0x2dc), _0x215965(0x2f8))) : (chatFilter = document[_0x215965(0x19e)](_0x215965(0x162)),
$(_0x215965(0x374))['hide'](),
$('#mobilTools')['hide']());
$(DIV_CHAT_DESKTOP)['hide'](),
$(DIV_CHAT_MOBILE)[_0x215965(0xff)]();
!isMobile ? (DIV_CHAT = DIV_CHAT_DESKTOP,
$(DIV_CHAT)[_0x215965(0x3ed)](),
$(document)[_0x215965(0x27d)](function(_0x4dde3a) {
var _0x2e7c89 = _0x215965;
_0x4dde3a[_0x2e7c89(0x73)] == 0xd && $(_0x2e7c89(0x339))['focus']();
})) : (DIV_CHAT = DIV_CHAT_MOBILE,
$(DIV_CHAT)[_0x215965(0xff)](),
$('#closeChatContainer')[_0x215965(0xf1)](function() {
var _0x47d6fd = _0x215965;
sb['chatShow'][_0x47d6fd(0x29e)](![]);
}),
$(_0x215965(0x22c))[_0x215965(0x391)](function() {
sendChatMessage();
}),
$(_0x215965(0xbb))[_0x215965(0x143)]('background-color', _0x215965(0x105)),
$(_0x215965(0xbb))[_0x215965(0x143)](_0x215965(0x282), '1px\x20solid\x20#FFF'));
isMobile ? yesno_settings = document['getElementById'](_0x215965(0xcd)) : yesno_settings = document['getElementById'](_0x215965(0x2d9));
localStorage[_0x215965(0x30f)] == null ? setChatMode(CHATMODE_ALL, SETMODE_CONTROLS | SETMODE_STORAGE) : setChatMode(Number(localStorage[_0x215965(0x30f)]), SETMODE_CONTROLS);
var _0x4cd20f;
mainCanvas = document[_0x215965(0x19e)]('canvas'),
mainCanvas[_0x215965(0x1f8)](),
ctx = mainCanvas[_0x215965(0xeb)]('2d'),
webgl[_0x215965(0x25f)](),
sb = buttonsInit(),
mainCanvas[_0x215965(0xa1)] = mainCanvas_onmousedown,
mainCanvas[_0x215965(0x325)] = mainCanvas_onmousemove,
isTouchDevice && (mainCanvas[_0x215965(0x277)]('touchstart', onTouchStart, ![]),
mainCanvas[_0x215965(0x277)](_0x215965(0x3a3), onTouchMove, ![]),
mainCanvas[_0x215965(0x277)]('touchend', onTouchEnd, ![])),
document[_0x215965(0x2e3)][_0x215965(0x3b3)] = body_onmousewheel,
mainCanvas[_0x215965(0xb6)] = function() {
isTyping = ![];
}
,
document[_0x215965(0x19e)](_0x215965(0x81)) && (document[_0x215965(0x19e)](_0x215965(0x81))['onblur'] = function() {
isTyping = ![];
}
),
document['getElementById'](_0x215965(0x81)) && (document[_0x215965(0x19e)](_0x215965(0x81))[_0x215965(0xb6)] = function() {
isTyping = !![];
}
),
window['onblur'] = function() {
wPressed = qPressed = spacePressed = ![];
}
,
window[_0x215965(0x33d)] = canvasResize,
canvasResize(),
window[_0x215965(0x3e6)] ? window[_0x215965(0x3e6)](redrawGameScene) : setInterval(drawGameScene, 0x3e8 / 0x3c),
document[_0x215965(0x19e)](_0x215965(0x345))['style']['display'] = _0x215965(0x12e),
canvasResize(),
$('#enterPriceYes')['click'](function() {
var _0x362624 = _0x215965;
document[_0x362624(0x19e)](_0x362624(0x32b))['style'][_0x362624(0x7b)] = _0x362624(0x146),
sendConfirmPay();
}),
$(_0x215965(0x225))[_0x215965(0x391)](function() {
var _0x3f21ea = _0x215965;
document[_0x3f21ea(0x19e)](_0x3f21ea(0x32b))[_0x3f21ea(0xe6)][_0x3f21ea(0x7b)] = _0x3f21ea(0x146),
document['getElementById'](_0x3f21ea(0x345))[_0x3f21ea(0xe6)]['display'] = _0x3f21ea(0x12e);
}),
$(_0x215965(0x183))[_0x215965(0x391)](function() {
var _0x104eeb = _0x215965;
document[_0x104eeb(0x19e)](_0x104eeb(0x35f))[_0x104eeb(0xe6)][_0x104eeb(0x7b)] = _0x104eeb(0x146),
document['getElementById'](_0x104eeb(0x345))[_0x104eeb(0xe6)][_0x104eeb(0x7b)] = _0x104eeb(0x12e);
}),
$('#generalErrorDialog_ok')[_0x215965(0x391)](function() {
var _0x56bc44 = _0x215965;
document[_0x56bc44(0x19e)](_0x56bc44(0x3ee))[_0x56bc44(0xe6)][_0x56bc44(0x7b)] = _0x56bc44(0x146),
document['getElementById'](_0x56bc44(0x345))['style'][_0x56bc44(0x7b)] = _0x56bc44(0x12e);
}),
$(_0x215965(0xb3))[_0x215965(0x391)](function() {
var _0x179ce4 = _0x215965;
document[_0x179ce4(0x19e)](_0x179ce4(0x1a1))[_0x179ce4(0xe6)][_0x179ce4(0x7b)] = 'none',
document[_0x179ce4(0x19e)](_0x179ce4(0x345))['style'][_0x179ce4(0x7b)] = _0x179ce4(0x12e);
}),
$(_0x215965(0x256))[_0x215965(0x391)](function() {
var _0x310bb0 = _0x215965;
cellManager[_0x310bb0(0x3a1)] = 0x0,
cellManager[_0x310bb0(0xa7)] = DRAWMODE_REPLAY_PLAY,
$(DIV_MAIN_MENU)['hide']();
}),
$(_0x215965(0x1c5))[_0x215965(0x391)](function() {
var _0x3c3e2c = _0x215965;
$(_0x3c3e2c(0xa3))[_0x3c3e2c(0xff)](),
$(DIV_MAIN_MENU)[_0x3c3e2c(0x3ed)]();
}),
microphone[_0x215965(0x383)](),
adminChatMenu2[_0x215965(0x25f)](),
isMobile ? (loginDivName = _0x215965(0x119),
document[_0x215965(0x19e)](_0x215965(0xcb))[_0x215965(0xe6)][_0x215965(0x7b)] = 'none',
document[_0x215965(0x19e)](_0x215965(0x215))['style'][_0x215965(0x7b)] = _0x215965(0x146),
document[_0x215965(0x19e)](_0x215965(0x1bd))[_0x215965(0xe6)][_0x215965(0x7b)] = 'none',
document[_0x215965(0x19e)](_0x215965(0x8e))[_0x215965(0xe6)]['display'] = _0x215965(0x146),
document[_0x215965(0x19e)]('idDiscord')[_0x215965(0xe6)][_0x215965(0x7b)] = _0x215965(0x146),
document[_0x215965(0x19e)](_0x215965(0x10a))['style'][_0x215965(0x7b)] = _0x215965(0x146),
document[_0x215965(0x19e)](_0x215965(0x37c))[_0x215965(0xe6)]['display'] = 'none') : (document[_0x215965(0x19e)](_0x215965(0xa0))['style']['display'] = _0x215965(0x146),
loginDivName = '#idUserDesktop'),
localStorage['getItem'](_0x215965(0xdc)) === null || localStorage[_0x215965(0xdc)] == _0x215965(0x30d) ? (user_show(),
ajax_skinFavori()) : user_token(),
$('#divReport')[_0x215965(0xff)](),
$(_0x215965(0x279))[_0x215965(0x391)](function() {
var _0x20f8a4 = _0x215965;
$(_0x20f8a4(0xd6))[_0x20f8a4(0xff)]();
});
}
function body_onmousewheel(_0x4ff649) {
var _0x5a59b8 = _0x2a4b69;
cameraManager['onMouseWheel'](_0x4ff649[_0x5a59b8(0x37f)]),
tutorial_zoom[_0x5a59b8(0x3a9)]();
}
function wsClose() {
var _0x80692b = _0x2a4b69;
try {
playerInfoList = [],
ws[_0x80692b(0x124)]();
} catch (_0x2029db) {}
ws = null;
}
function wsConnect() {
var _0x34fa6e = _0x2a4b69;
cellManager[_0x34fa6e(0x2c3)](),
cellManager['clearRecord'](),
leaderBoard = [],
leaderboard_ext = [],
lastWinner = '?',
topMessage1 = '',
topMessage2 = '',
topMessage3 = '',
countdown = 0xe10,
userScoreMax = 0x0,
userScoreCurrent = 0x0,
teamMapPlayers = [],
clanMapPlayers = [],
goldToPrizeTime = 0x0,
autoBigTime = 0x0,
ws = new WebSocket(ws_url),
ws['binaryType'] = _0x34fa6e(0x1ae),
ws[_0x34fa6e(0x1f3)] = onWsOpen,
ws[_0x34fa6e(0x155)] = onWsMessage,
ws[_0x34fa6e(0x1c0)] = onWsClose,
ws[_0x34fa6e(0x212)] = function(_0x52124e) {
var _0x456714 = _0x34fa6e;
console[_0x456714(0x323)](_0x456714(0x217), _0x52124e);
}
,
wsList[_0x34fa6e(0x328)](ws);
}
function wsSend(_0x115723) {
var _0x3ab922 = _0x2a4b69;
ws != null ? ws['send'](_0x115723[_0x3ab922(0x181)]) : console[_0x3ab922(0x323)](_0x3ab922(0x2fe));
}
function _0x465a(_0x131b9f, _0x476ecf) {
var _0x2a9785 = _0x2a97();
return _0x465a = function(_0x465aa0, _0x3446aa) {
_0x465aa0 = _0x465aa0 - 0x6b;
var _0x53b045 = _0x2a9785[_0x465aa0];
return _0x53b045;
}
,
_0x465a(_0x131b9f, _0x476ecf);
}
function sendStart() {
var _0xa1dac = _0x2a4b69;
if (clientVersion == serverVersion) {
cameraManager['onSendStart'](),
sendLang();
if (localStorage[_0xa1dac(0xdc)] != null && localStorage['userToken'][_0xa1dac(0x395)] == 0x20) {
var _0x8fddc = prepareData(0x1 + 0x2 * 0x20);
_0x8fddc['setUint8'](0x0, OPCODE_C2S_SET_TOKEN);
var _0x45191c = 0x1;
for (var _0xc432c0 = 0x0; _0xc432c0 < 0x20; ++_0xc432c0) {
var _0xe1904d = localStorage[_0xa1dac(0xdc)][_0xa1dac(0x292)](_0xc432c0);
_0x8fddc[_0xa1dac(0x227)](_0x45191c, _0xe1904d, !![]),
_0x45191c += 0x2;
}
wsSend(_0x8fddc);
} else
playMode == PLAYMODE_SPECTATE ? (spectatorId = -0x1,
spectatorPlayer = null,
isAdminSafe() ? sendAdminSpectate() : sendUint8(OPCODE_C2S_SPECTATE_REQUEST)) : sendUint8(OPCODE_C2S_PLAY_AS_GUEST_REQUEST);
} else
serverVersion != 0x0 && showGeneralError(trans[0x10a], 'C:' + clientVersion + _0xa1dac(0x2ee) + serverVersion);
}
function sendLang() {
var _0x5947a8 = _0x2a4b69
, _0x22ad35 = prepareData(0x2);
_0x22ad35['setUint8'](0x0, OPCODE_C2S_SET_LANG);
switch (getLangCode()) {
case 'tr':
_0x22ad35[_0x5947a8(0x260)](0x1, 0x1);
break;
case 'en':
_0x22ad35[_0x5947a8(0x260)](0x1, 0x2);
break;
case 'es':
_0x22ad35[_0x5947a8(0x260)](0x1, 0x3);
break;
case 'de':
_0x22ad35[_0x5947a8(0x260)](0x1, 0x4);
break;
case 'ru':
_0x22ad35['setUint8'](0x1, 0x5);
break;
}
wsSend(_0x22ad35);
}
function onWsOpen() {
var _0x474600 = _0x2a4b69
, _0x5499fe = prepareData(0x5);
_0x5499fe[_0x474600(0x260)](0x0, OPCODE_C2S_BEGIN),
_0x5499fe[_0x474600(0x3a4)](0x1, clientVersion, !![]),
wsSend(_0x5499fe);
}
function setSpectator(_0x2ebb2f) {
var _0x211e0e = _0x2a4b69
, _0x939c65 = prepareData(0x5);
_0x939c65[_0x211e0e(0x260)](0x0, OPCODE_C2S_SET_SPECTATOR),
_0x939c65[_0x211e0e(0x3a4)](0x1, _0x2ebb2f),
wsSend(_0x939c65);
}
function onWsClose() {
var _0x20acc1 = _0x2a4b69;
ws = null,
chatManager[_0x20acc1(0x144)]();
if (skipPopupOnClose == !![])
skipPopupOnClose = ![];
else
$(_0x20acc1(0x2aa))['is'](_0x20acc1(0x96)) == ![] && cellManager['drawMode'] == DRAWMODE_NORMAL && (document[_0x20acc1(0x19e)](_0x20acc1(0x345))[_0x20acc1(0xe6)][_0x20acc1(0x7b)] = 'block',
canvasResize());
playerId = -0x1,
spectatorId = -0x1,
reconnect == 0x0 ? playMode = PLAYMODE_NONE : (reconnect = 0x0,
wsConnect());
}
function onWsMessage(_0x1b85b1) {
var _0xc52696 = _0x2a4b69;
try {
handleWsMessage(new DataView(_0x1b85b1[_0xc52696(0xa4)]));
} catch (_0xe517e9) {
console[_0xc52696(0x323)](_0xe517e9);
var _0x4345f5 = 0x0;
}
}
function transLastWinner(_0x5ad5dd, _0x2ae2a2, _0x5cc894) {
var _0x2eeea0 = _0x2a4b69;
switch (getLangCode()) {
case 'tr':
return _0x5ad5dd + _0x2eeea0(0x2f2) + _0x5cc894 + '\x20SKOR\x20' + _0x2ae2a2[_0x2eeea0(0x287)]();
case 'en':
return _0x5ad5dd + '\x20WINNER\x20IS\x20' + _0x5cc894 + '\x20SCORE\x20' + _0x2ae2a2[_0x2eeea0(0x287)]();
case 'es':
return _0x5ad5dd + _0x2eeea0(0x26f) + _0x5cc894 + '\x20PUNTUACIÓN\x20' + _0x2ae2a2[_0x2eeea0(0x287)]();
case 'de':
return _0x5ad5dd + _0x2eeea0(0x8b) + _0x5cc894 + '\x20ERGEBNIS\x20' + _0x2ae2a2['dotFormat']();
}
return _0x2eeea0(0x1bf);
}
function transNewRecord(_0x4edaff, _0x318836, _0x3606e0) {
var _0x3beba1 = _0x2a4b69;
switch (getLangCode()) {
case 'tr':
return _0x4edaff + '\x20REKOR!\x20' + _0x3606e0 + _0x3beba1(0x171) + _0x318836['dotFormat']();
case 'en':
return _0x4edaff + _0x3beba1(0x332) + _0x3606e0 + _0x3beba1(0x2ac) + _0x318836['dotFormat']();
case 'es':
return _0x4edaff + _0x3beba1(0x83) + _0x3606e0 + _0x3beba1(0xcf) + _0x318836[_0x3beba1(0x287)]();
case 'de':
return _0x4edaff + _0x3beba1(0x3fb) + _0x3606e0 + '\x20ERGEBNIS\x20' + _0x318836[_0x3beba1(0x287)]();
}
return _0x3beba1(0x1bf);
}
function transWinClanWar(_0x49018d, _0x4df253, _0x52dc07) {
var _0x2d7f64 = _0x2a4b69;
switch (getLangCode()) {
case 'tr':
return _0x49018d + _0x2d7f64(0x3d5) + _0x52dc07 + _0x2d7f64(0xa6) + _0x4df253[_0x2d7f64(0x287)]() + _0x2d7f64(0x318);
case 'en':
return _0x49018d + _0x2d7f64(0xb1) + _0x52dc07 + '\x27!\x20PRIZE:' + _0x4df253[_0x2d7f64(0x287)]() + _0x2d7f64(0x318);
case 'es':
return _0x49018d + _0x2d7f64(0xb1) + _0x52dc07 + _0x2d7f64(0x1c7) + _0x4df253[_0x2d7f64(0x287)]() + _0x2d7f64(0x318);
case 'de':
return _0x49018d + _0x2d7f64(0xb1) + _0x52dc07 + _0x2d7f64(0x1c7) + _0x4df253[_0x2d7f64(0x287)]() + _0x2d7f64(0x318);
}
return _0x2d7f64(0x1bf);
}
function transMessage(_0x3af496) {
var _0xd10d86 = _0x2a4b69;
if (_0x3af496[_0xd10d86(0x12a)](_0xd10d86(0x207))) {
var _0x29a88b = _0x3af496[_0xd10d86(0x3f2)](0x6)
, _0x1175bb = _0x29a88b[_0xd10d86(0x1c9)](',');
if (_0x1175bb[0x0] == '1') {
var _0x2d9ad0 = _0x1175bb[0x1]
, _0x157b23 = parseInt(_0x1175bb[0x2])
, _0x5bf9e7 = _0x1175bb[_0xd10d86(0x321)](0x3)[_0xd10d86(0x140)]('\x20');
return transLastWinner(_0x2d9ad0, _0x157b23, _0x5bf9e7);
} else {
if (_0x1175bb[0x0] == '2') {
var _0x2d9ad0 = _0x1175bb[0x1]
, _0x157b23 = parseInt(_0x1175bb[0x2])
, _0x5bf9e7 = _0x1175bb[_0xd10d86(0x321)](0x3)[_0xd10d86(0x140)]('\x20');
return transNewRecord(_0x2d9ad0, _0x157b23, _0x5bf9e7);
} else {
if (_0x1175bb[0x0] == '3') {
var _0x2d9ad0 = _0x1175bb[0x1]
, _0x3be3b9 = parseInt(_0x1175bb[0x2])
, _0xca7e = _0x1175bb[_0xd10d86(0x321)](0x3)[_0xd10d86(0x140)]('\x20');
return transWinClanWar(_0x2d9ad0, _0x3be3b9, _0xca7e);
} else
return _0x3af496;
}
}
} else
return _0x3af496;
}
function handleWsMessage(_0x3bf81) {
var _0x54876e = _0x2a4b69;
function _0x12ca31() {
var _0x333a8e = _0x465a, _0x20362f = '', _0x264b0e;
while ((_0x264b0e = _0x3bf81[_0x333a8e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
_0x20362f += String['fromCharCode'](_0x264b0e);
}
return _0xfbf61 += 0x2,
_0x20362f;
}
var _0xfbf61 = 0x0
, _0x375e3c = ![]
, _0x555427 = _0x3bf81[_0x54876e(0x33a)](_0xfbf61);
_0xfbf61 += 0x1;
switch (_0x555427) {
case 0x1:
break;
case OPCODE_S2C_UPDATE_POSITION:
var _0xc8d50f = _0x3bf81[_0x54876e(0xd7)](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x466cf1 = _0x3bf81[_0x54876e(0xd7)](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x4eb9dd = _0x3bf81[_0x54876e(0xd7)](_0xfbf61, !![]);
_0xfbf61 += 0x4,
cameraManager[_0x54876e(0x99)] = _0xc8d50f,
cameraManager[_0x54876e(0x1d3)] = _0x466cf1,
cameraManager[_0x54876e(0x354)] = _0xc8d50f,
cameraManager['translate_y_current'] = _0x466cf1;
break;
case 0x15:
var _0x2f9926 = _0x3bf81[_0x54876e(0x290)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x5c60bc = _0x3bf81[_0x54876e(0x290)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
break;
case OPCODE_S2C_ADDNODE:
var _0xf6d554 = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
cellManager[_0x54876e(0x3cc)][_0x54876e(0x328)](_0xf6d554),
_0xfbf61 += 0x4;
break;
case OPCODE_S2C_UPDATE_LEADERBOARD:
!_0x375e3c && (noRanking = ![]);
var _0x17d305 = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4,
leaderBoard = [];
for (_0x13f2f6 = 0x0; _0x13f2f6 < _0x17d305; ++_0x13f2f6) {
var _0x5c948f = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4,
leaderBoard[_0x54876e(0x328)]({
'id': _0x5c948f,
'name': _0x12ca31(),
'draw_x': 0x0,
'draw_y': 0x0,
'draw_w': 0x0,
'draw_h': 0x0
});
}
break;
case OPCODE_S2C_UPDATE_LEADERBOARD_EXT:
leaderboard_ext = [];
var _0x1304fd = _0x3bf81[_0x54876e(0x33a)](_0xfbf61, !![]);
_0xfbf61 += 0x1;
for (var _0x13f2f6 = 0x0; _0x13f2f6 < _0x1304fd; ++_0x13f2f6) {
var _0x5789ab = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x1ffaed = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x49714e = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x303ae5 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x5bcd78 = _0x3bf81[_0x54876e(0x33a)](_0xfbf61, !![]);
_0xfbf61 += 0x1;
var _0x9bfefc = 0x0
, _0x3c15fb = 0x0;
(_0x5bcd78 & 0x1) == 0x1 && (_0x9bfefc = 0x1),
(_0x5bcd78 & 0x2) == 0x2 && (_0x3c15fb = 0x1),
leaderboard_ext[_0x54876e(0x328)]({
'pID': _0x5789ab,
'x': _0x1ffaed,
'y': _0x49714e,
'i': _0x303ae5,
'sameClan': _0x9bfefc,
'sameTeam': _0x3c15fb
});
}
break;
case OPCODE_S2C_PLAYER_LIST:
leaderboard_ext = [];
var _0x2b3b13 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x13f2f6 = 0x0;
plList = [];
while (_0x13f2f6 < _0x2b3b13) {
var _0x39e33f = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x107717 = '';
for (var _0x272443 = 0x0; _0x272443 < 0xf; _0x272443++) {
var _0x345f77 = _0x3bf81['getUint16'](_0xfbf61, !![]);
_0xfbf61 += 0x2,
_0x345f77 != 0x0 && (_0x107717 += String[_0x54876e(0x341)](_0x345f77));
}
var _0x100ad5 = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x4d17a5 = '';
for (var _0x272443 = 0x0; _0x272443 < 0x10; _0x272443++) {
var _0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2,
_0x345f77 != 0x0 && (_0x4d17a5 += String[_0x54876e(0x341)](_0x345f77));
}
plList[_0x54876e(0x328)]({
'pid': _0x39e33f,
'ip': _0x107717,
'uid': _0x100ad5,
'name': _0x4d17a5
}),
console[_0x54876e(0x323)](_0x39e33f + '|' + _0x107717 + '|' + _0x100ad5 + '|' + _0x4d17a5),
_0x13f2f6++;
}
break;
case OPCODE_S2C_BOARD_SIZE:
leftPos = _0x3bf81[_0x54876e(0x3d3)](_0xfbf61, !![]),
_0xfbf61 += 0x8,
topPos = _0x3bf81[_0x54876e(0x3d3)](_0xfbf61, !![]),
_0xfbf61 += 0x8,
rightPos = _0x3bf81[_0x54876e(0x3d3)](_0xfbf61, !![]),
_0xfbf61 += 0x8,
bottomPos = _0x3bf81[_0x54876e(0x3d3)](_0xfbf61, !![]),
_0xfbf61 += 0x8,
cameraManager[_0x54876e(0x99)] = (leftPos + rightPos) / 0x2,
cameraManager[_0x54876e(0x1d3)] = (topPos + bottomPos) / 0x2,
cameraManager[_0x54876e(0x354)] = cameraManager[_0x54876e(0x99)],
cameraManager['translate_y_current'] = cameraManager[_0x54876e(0x1d3)],
prog_background[_0x54876e(0xf7)]();
break;
case OPCODE_S2C_RECORD_HOLDER:
recordHolder = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
recordHolder += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2;
recordHolder == 'KLAN\x20SAVAŞLARI' && (getLangCode() != 'tr' && (recordHolder = _0x54876e(0x1cb)));
break;
case OPCODE_S2C_MAP_CLAN_PLAYERS:
clanMapPlayers = [];
while (_0xfbf61 < _0x3bf81[_0x54876e(0x35d)]) {
var _0x15b0bc = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x2fe4d7 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2,
clanMapPlayers[_0x54876e(0x328)]({
'x': _0x15b0bc,
'y': _0x2fe4d7
});
}
break;
case OPCODE_S2C_MAP_TEAM_PLAYERS:
teamMapPlayers = [];
while (_0xfbf61 < _0x3bf81[_0x54876e(0x35d)]) {
var _0x15b0bc = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x2fe4d7 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2,
teamMapPlayers[_0x54876e(0x328)]({
'x': _0x15b0bc,
'y': _0x2fe4d7
});
}
break;
case OPCODE_S2C_ADD_CHAT:
addChat2(_0x3bf81, _0xfbf61);
break;
case OPCODE_S2C_GAMENAME:
var _0x1a216f = '', _0x345f77;
while ((_0x345f77 = _0x3bf81['getUint16'](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
_0x1a216f += String['fromCharCode'](_0x345f77);
}
_0xfbf61 += 0x2;
this[_0x54876e(0x3ab)] != _0x1a216f && (wsClose(),
console[_0x54876e(0x323)](this[_0x54876e(0x3ab)] + '!=' + _0x1a216f));
break;
case OPCODE_S2C_USER_LOGOUT:
console[_0x54876e(0x323)]('user\x20logout\x20by\x20server');
var _0xfc1674 = '', _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
_0xfc1674 += String['fromCharCode'](_0x345f77);
}
_0xfbf61 += 0x2,
user_logout(_0xfc1674);
break;
case OPCODE_S2C_USER_GOLD:
let _0x1e4ea9 = gold;
gold = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
gold != _0x1e4ea9 && (goldDiff += gold - _0x1e4ea9);
break;
case OPCODE_S2C_TOPMSG:
var _0x35b232 = _0x3bf81[_0x54876e(0x33a)](_0xfbf61++);
switch (_0x35b232) {
case 0x1:
topMessage1 = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
topMessage1 += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2,
topMessage1 = transMessage(topMessage1);
break;
case 0x2:
topMessage2 = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
topMessage2 += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2,
topMessage2 = transMessage(topMessage2);
break;
case 0x3:
topMessage3 = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
topMessage3 += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2,
topMessage3 = transMessage(topMessage3);
break;
}
break;
case OPCODE_S2C_COUNTDOWN:
countdown = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]),
_0xfbf61 += 0x2;
break;
case OPCODE_S2C_WINNER:
lastWinner = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81['getUint16'](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
lastWinner += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2;
break;
case 0x62:
var _0xc8ad85 = _0x3bf81['getUint32'](_0xfbf61, !![]);
_0xfbf61 += 0x4;
var _0x3d4736 = _0x3bf81[_0x54876e(0x94)](_0xfbf61, !![]);
_0xfbf61 += 0x4,
setServerStatus(_0xc8ad85, _0x3d4736);
break;
case 0x63:
break;
case OPCODE_S2C_UPDATE_NODES2:
updateNodes2(_0x3bf81, _0xfbf61);
break;
case OPCODE_S2C_UPDATE_NODES2_EXT:
updateNodesExt(_0x3bf81, _0xfbf61);
break;
case OPCODE_S2C_RECORD_HOLDER_V2:
record_uid = _0x3bf81['getUint32'](_0xfbf61, !![]),
_0xfbf61 += 0x4,
recordHolder = '';
var _0x345f77;
while ((_0x345f77 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![])) != 0x0) {
_0xfbf61 += 0x2,
recordHolder += String[_0x54876e(0x341)](_0x345f77);
}
_0xfbf61 += 0x2;
recordHolder == _0x54876e(0xa5) && (getLangCode() != 'tr' && (recordHolder = _0x54876e(0x1cb)));
break;
case OPCODE_S2C_SPECTATE_ID:
playerId = -0x1,
spectatorId = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4,
setTimeout(function() {
var _0x4d95a4 = _0x54876e;
spectatorPlayer = getPlayerByPID(spectatorId),
isAdminSafe() && (spectatorPlayer != null && console['log'](_0x4d95a4(0x2d1) + spectatorPlayer[_0x4d95a4(0x127)] + '\x20' + spectatorPlayer['ip'] + '\x20' + spectatorPlayer[_0x4d95a4(0x101)]));
}, 0x7d0);
break;
case OPCODE_S2C_PLAYER_ID:
spectatorId = -0x1,
playerId = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
break;
case OPCODE_S2C_IPSAFE_FAIL:
window[_0x54876e(0x266)][_0x54876e(0x296)](![]);
break;
case OPCODE_S2C_TOPMSG_CLEAR:
var _0x35b232 = _0x3bf81[_0x54876e(0x33a)](_0xfbf61);
_0xfbf61 += 0x1,
console[_0x54876e(0x323)](_0x54876e(0x3ca) + _0x35b232);
break;
case OPCODE_S2C_WINPRIZE:
winPrize = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
break;
case OPCODE_S2C_ENTER_PRICE:
enterPrice = _0x3bf81['getInt32'](_0xfbf61, !![]),
_0xfbf61 += 0x4;
var _0x1b8f39 = trans[0x107]['replace'](_0x54876e(0x3ff), enterPrice['dotFormat']());
$(_0x54876e(0x2b0))[_0x54876e(0xc3)](_0x1b8f39);
break;
case OPCODE_S2C_READY_TO_START:
cameraManager[_0x54876e(0x99)] = cameraManager[_0x54876e(0x354)],
cameraManager[_0x54876e(0x1d3)] = cameraManager[_0x54876e(0xcc)],
sendStart();
break;
case OPCODE_S2C_SERVER_VERSION:
serverVersion = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
serverVersion == _0x54876e(0x294) && (showGeneralError('Güncelleme\x20sebebiyle\x20odaya\x20girilemiyor'),
wsClose());
break;
case OPCODE_S2C_INFO:
info = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
switch (info) {
case INFO_SHOW_MAINMENU:
document[_0x54876e(0x19e)](_0x54876e(0x345))[_0x54876e(0xe6)][_0x54876e(0x7b)] = _0x54876e(0x12e),
canvasResize();
break;
case INFO_READY_TO_PLAY:
microphone[_0x54876e(0x368)]();
playMode == PLAYMODE_SPECTATE ? isAdminSafe() ? (sendAdminSpectate(),
getPlayerList()) : sendUint8(OPCODE_C2S_SPECTATE_REQUEST) : (sendTeam(),
sendSkinName(),
sendScopeAround(),
sendUserName(),
isAdminSafe() ? spawnOnClick = !![] : sendSpawnPlayer());
break;
case INFO_ASK_ENTER_PRICE:
$(DIV_MAIN_MENU)[_0x54876e(0xff)](),
$(_0x54876e(0x3e3))[_0x54876e(0x3ed)](),
canvasResize();
break;
case INFO_TOKEN_IS_INCORRECT:
delete localStorage[_0x54876e(0xdc)],
console['log'](_0x54876e(0x1d5)),
showGeneralError(trans[0x103], info);
break;
case INFO_LOGIN_COMPLETED:
showGeneralError(_0x54876e(0x30e));
break;
case INFO_GUEST_CANNOT_PAY:
showGeneralError(_0x54876e(0x210));
break;
case INFO_NO_NEED_PAY:
showGeneralError('Bu\x20oda\x20için\x20ödeme\x20yapmak\x20gerekmiyor!');
break;
case INFO_ALREADY_PAID:
showGeneralError(_0x54876e(0x235));
break;
case INFO_GOLD_IS_NOT_ENOUGH:
showGeneralError(trans[0x105], info);
break;
case INFO_GUEST_CANNOT_ENTER:
showGeneralError(trans[0x104], info);
break;
case INFO_PLAYER_ALREADY_SPAWN:
console[_0x54876e(0x323)](_0x54876e(0x106));
break;
case INFO_THIS_KS_ROOM_CLOSED_TO_OBSERVE:
console[_0x54876e(0x323)](_0x54876e(0x334));
break;
case INFO_WHILE_PLAYING_CANNOT_OBSERVE:
console['log'](_0x54876e(0xfe)),
playMode = PLAYMODE_PLAY;
break;
case INFO_GENERAL_ERROR:
console['log'](_0x54876e(0x116));
break;
case INFO_ONLY_PAID_PLAYERS_CAN_OBSERVE:
console[_0x54876e(0x323)](_0x54876e(0x160));
break;
case INFO_ONLY_NEW_ACCOUNTS_ALLOWED:
showGeneralError(_0x54876e(0x3df));
break;
case INFO_YOU_DEAD:
console['log'](_0x54876e(0x16d)),
closeFullscreen(),
sendUint8(OPCODE_C2S_EMITFOOD_STOP),
playMode = PLAYMODE_NONE,
playerId = -0x1,
spectatorId = -0x1,
isLockMouse = 0x0,
isLockFood = 0x0;
break;
case INFO_SPECTATE_BEGIN:
playMode = PLAYMODE_SPECTATE,
isLockMouse = 0x0,
isLockFood = 0x0;
break;
case INFO_PLAY_BEGIN:
playMode = PLAYMODE_PLAY,
isLockMouse = 0x0,
isLockFood = 0x0,
viewZoom = 0.3;
break;
}
break;
case OPCODE_S2C_USER_ID:
playerUserId = _0x3bf81[_0x54876e(0x18c)](_0xfbf61, !![]),
_0xfbf61 += 0x4;
break;
case OPCODE_S2C_VALUE_UINT32:
var _0x2fac74 = _0x3bf81[_0x54876e(0x28b)](_0xfbf61, !![]);
_0xfbf61 += 0x2;
var _0x15e8bc = _0x3bf81['getUint32'](_0xfbf61, !![]);
_0xfbf61 += 0x4;
switch (_0x2fac74) {
case 0x1:
playerMaxMass = _0x15e8bc;
break;
case 0x2:
playerMaxCells = _0x15e8bc;
break;
case 0x3:
virusMinAmount = _0x15e8bc;
break;
case 0x4:
virusMaxAmount = _0x15e8bc;
break;
case 0x5:
playerCount = _0x15e8bc;
break;
case 0x6:
observerCount = _0x15e8bc;
break;
case 0x7:
virusCount = _0x15e8bc;
break;
case 0x8:
break;
case 0x9:
break;
case 0xa:
var _0x20da16 = new Date()[_0x54876e(0x20a)]() - js_load_time;
ping_last = _0x20da16 - _0x15e8bc;
break;
case 0xb:
premiumPlayerCount = _0x15e8bc;
break;
case 0xc:
premiumPlayerMinForBoost = _0x15e8bc;
break;
}
break;
case OPCODE_S2C_ENDGAME_LIST:
var _0x185b16 = _0x3bf81['getUint16'](_0xfbf61, !![]);
_0xfbf61 += 0x2,
$(_0x54876e(0x175))[_0x54876e(0x3be)]();
var _0x2b87b2 = '