Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/bubble_shooter/scripts/main.min.js
�азад
const _0x1e1389=_0xeee8;(function(_0x1abf61,_0x3fa057){const _0x541573=_0xeee8,_0x5b67c0=_0x1abf61();while(!![]){try{const _0x1fdea1=parseInt(_0x541573(0xd0))/0x1*(-parseInt(_0x541573(0x177))/0x2)+parseInt(_0x541573(0xfd))/0x3+parseInt(_0x541573(0x120))/0x4+parseInt(_0x541573(0x13c))/0x5+-parseInt(_0x541573(0x161))/0x6*(parseInt(_0x541573(0x100))/0x7)+-parseInt(_0x541573(0x13f))/0x8+parseInt(_0x541573(0x87))/0x9;if(_0x1fdea1===_0x3fa057)break;else _0x5b67c0['push'](_0x5b67c0['shift']());}catch(_0x2a7e54){_0x5b67c0['push'](_0x5b67c0['shift']());}}}(_0x3f0b,0xd9f75));var gameOptions={'sound':!![],'music':!![]},atlasMode=!![];function playSound(_0x37926a,_0x396b49){const _0x4e256d=_0xeee8;gameOptions['sound']&&_0x396b49['sound'][_0x4e256d(0x9f)](_0x37926a);}function toggleSound(_0x556e4e){const _0x595b98=_0xeee8;_0x556e4e['name']!=_0x595b98(0xb3)&&alert(_0x595b98(0x8b));let _0x2fef77;atlasMode?_0x2fef77=_0x556e4e[_0x595b98(0x103)][_0x595b98(0x140)][_0x595b98(0x165)]('.png',''):_0x2fef77=_0x556e4e['texture'][_0x595b98(0x8d)];let _0x2233df=_0x2fef77[_0x595b98(0x165)](_0x595b98(0x187),'')[_0x595b98(0x165)](_0x595b98(0x10d),'')[_0x595b98(0x165)](_0x595b98(0x137),'');gameOptions[_0x595b98(0xb3)]?(gameOptions['sound']=![],atlasMode?_0x556e4e[_0x595b98(0xad)](_0x595b98(0xbf),_0x595b98(0x187)+_0x2233df+_0x595b98(0xe8)):_0x556e4e[_0x595b98(0xad)](_0x595b98(0x187)+_0x2233df+_0x595b98(0x137))):(gameOptions[_0x595b98(0xb3)]=!![],atlasMode?_0x556e4e[_0x595b98(0xad)](_0x595b98(0xbf),_0x595b98(0x187)+_0x2233df+_0x595b98(0xaf)):_0x556e4e['setTexture'](_0x595b98(0x187)+_0x2233df+_0x595b98(0x10d)));}function setSoundButton(_0x304a99){const _0x1c34b3=_0xeee8;_0x304a99[_0x1c34b3(0x140)]!=_0x1c34b3(0xb3)&&alert('Error:\x20Object\x20is\x20not\x20sound\x20button');let _0x34c395;atlasMode?_0x34c395=_0x304a99[_0x1c34b3(0x103)]['name'][_0x1c34b3(0x165)](_0x1c34b3(0x10f),''):_0x34c395=_0x304a99[_0x1c34b3(0x144)][_0x1c34b3(0x8d)];let _0x3753c9=_0x34c395[_0x1c34b3(0x165)](_0x1c34b3(0x187),'')[_0x1c34b3(0x165)]('-on','')[_0x1c34b3(0x165)](_0x1c34b3(0x137),'');gameOptions[_0x1c34b3(0xb3)]?atlasMode?_0x304a99[_0x1c34b3(0xad)](_0x1c34b3(0xbf),'btn-'+_0x3753c9+_0x1c34b3(0xaf)):_0x304a99['setTexture'](_0x1c34b3(0x187)+_0x3753c9+_0x1c34b3(0x10d)):atlasMode?_0x304a99['setTexture'](_0x1c34b3(0xbf),_0x1c34b3(0x187)+_0x3753c9+'-off.png'):_0x304a99[_0x1c34b3(0xad)](_0x1c34b3(0x187)+_0x3753c9+'-off');}function _0xeee8(_0xf96b43,_0x478e46){const _0x3f0b24=_0x3f0b();return _0xeee8=function(_0xeee8f8,_0x2dc371){_0xeee8f8=_0xeee8f8-0x85;let _0x409708=_0x3f0b24[_0xeee8f8];return _0x409708;},_0xeee8(_0xf96b43,_0x478e46);}function toggleMusic(_0x2548fb){const _0x23336e=_0xeee8;_0x2548fb[_0x23336e(0x140)]!=_0x23336e(0x112)&&alert(_0x23336e(0x92));let _0x347b83;atlasMode?_0x347b83=_0x2548fb[_0x23336e(0x103)]['name'][_0x23336e(0x165)](_0x23336e(0x10f),''):_0x347b83=_0x2548fb['texture'][_0x23336e(0x8d)];let _0x4332ca=_0x347b83['replace'](_0x23336e(0x187),'')[_0x23336e(0x165)]('-on','')['replace'](_0x23336e(0x137),'');gameOptions[_0x23336e(0x112)]?(gameOptions[_0x23336e(0x112)]=![],atlasMode?_0x2548fb[_0x23336e(0xad)](_0x23336e(0xbf),'btn-'+_0x4332ca+_0x23336e(0xe8)):_0x2548fb[_0x23336e(0xad)]('btn-'+_0x4332ca+'-off')):(gameOptions['music']=!![],atlasMode?_0x2548fb[_0x23336e(0xad)](_0x23336e(0xbf),_0x23336e(0x187)+_0x4332ca+'-on.png'):_0x2548fb[_0x23336e(0xad)](_0x23336e(0x187)+_0x4332ca+'-on'));}function setMusicButton(_0x1ff2af){const _0x2e133d=_0xeee8;_0x1ff2af[_0x2e133d(0x140)]!=_0x2e133d(0x112)&&alert('Error:\x20Object\x20is\x20not\x20music\x20button');let _0x20ce3c;atlasMode?_0x20ce3c=_0x1ff2af[_0x2e133d(0x103)]['name'][_0x2e133d(0x165)]('.png',''):_0x20ce3c=_0x1ff2af[_0x2e133d(0x144)]['key'];let _0x20b90b=_0x20ce3c[_0x2e133d(0x165)]('btn-','')['replace']('-on','')['replace'](_0x2e133d(0x137),'');gameOptions[_0x2e133d(0x112)]?atlasMode?_0x1ff2af['setTexture'](_0x2e133d(0xbf),_0x2e133d(0x187)+_0x20b90b+'-on.png'):_0x1ff2af[_0x2e133d(0xad)]('btn-'+_0x20b90b+_0x2e133d(0x10d)):atlasMode?_0x1ff2af[_0x2e133d(0xad)]('sprite-atlas',_0x2e133d(0x187)+_0x20b90b+'-off.png'):_0x1ff2af[_0x2e133d(0xad)](_0x2e133d(0x187)+_0x20b90b+_0x2e133d(0x137));}function createButton(_0x2dff3a,_0x1d4495,_0x579a0e,_0x53142d){const _0x52f3b1=_0xeee8;var _0x16398a=_0x53142d[_0x52f3b1(0xa1)]['sprite'](_0x2dff3a,_0x1d4495,_0x52f3b1(0xbf),_0x52f3b1(0x187)+_0x579a0e+_0x52f3b1(0x10f))[_0x52f3b1(0x136)]();_0x16398a[_0x52f3b1(0x126)]=!![];if(_0x579a0e[_0x52f3b1(0xe4)]('sound'))_0x579a0e=_0x52f3b1(0xb3);else _0x579a0e[_0x52f3b1(0xe4)](_0x52f3b1(0x112))&&(_0x579a0e=_0x52f3b1(0x112));return _0x16398a[_0x52f3b1(0x140)]=_0x579a0e,_0x16398a;}function getData(_0x51c610){const _0x144110=_0xeee8;let _0x5e18fb=localStorage[_0x144110(0x150)](_0x51c610);return _0x5e18fb?_0x5e18fb:null;}function saveData(_0x1fd4c1,_0x51526c){localStorage['setItem'](_0x1fd4c1,_0x51526c);}function removeData(_0x26eda6){localStorage['removeItem'](_0x26eda6);}function spriteKey(_0x11cf1e){const _0x25b27c=_0xeee8;return atlasMode?['sprite-atlas',_0x11cf1e+_0x25b27c(0x10f)]:_0x11cf1e;}function rawKey(_0x3156fe){return _0x3156fe;}var firstPlay=0x1,bestscore=0x0,score=0x0,storageKey=_0x1e1389(0xb2);loadData();function loadData(){let _0x3314f1=getData(storageKey);_0x3314f1&&(bestscore=_0x3314f1);}function _0x3f0b(){const _0x231544=['onPointerUp','isDragging','audio/click.mp3','setPosition','4268226fpUDku','audio','touchStartTime','animationDelay','replace','resume','popup','animateCollision','GAME_OVER','rectangle','destroy','background','onBubbleBounce','generateFrameNumbers','pointermove','audio/shot.mp3','minMatchSize','setBounds','load','Bounce.easeOut','setCollideWorldBounds','group','7466mRCWkZ','scoreText','animationcomplete','gameOver','floor','setScale','center','addScore','config','bubble-match','checkBubbleNotFloating','Shootable\x20bubble\x20repositioned\x20due\x20to\x20hitting\x20top\x20boundary','gridWidth','Back.easeOut','PLAY','AUTO','btn-','audio/bubble-falling.mp3','complete','setStrokeStyle','13585653JvYgzE','bubble-hit','exit','grid','Error:\x20Object\x20is\x20not\x20sound\x20button','gridX','key','dragStarted','currentShots','ground','max','Error:\x20Object\x20is\x20not\x20music\x20button','images/bubble.png','bubble','spritesheet','checkGameOver','SWAPPING','updateAimLine','makeInput','bubbleGroup','soreMultipler','paused','bubbleOffsetTop','break-5','play','getChildren','add','chest','gridHeight','panel-gameOver','images/breaks.png','setRotation','returnDuration','touchThreshold','shootableBubble','width','height','multiatlas','setTexture','checkFloatingBubbles','-on.png','setData','canShoot','rf.bubbleShooter','sound','alpha','currentAngle','image','shotsUntilDrop','pushDistance','getNeighbors','log','setDepth','updateTextScore','start','breaks','sprite-atlas','FIT','aimLine','body','gameObject','setVisible','stopListeners','isAnimating','worldbounds','stop','shootSpeed','nextNextBubbleColor','time','bubbleSize','cos','Score:\x20','text','297hjKBSa','CENTER_BOTH','repositionShootableBubble','setOrigin','images/game-title.png','Distance','nextBubbleColor','line','createBubbleGrid','colors','Quad.easeInOut','HighScore:\x20','length','pause','gameover','physics','isGameOverCondition','Developed\x20by\x20Gimcraft','velocity','vanilla','startsWith','game-content','maxColor','checkForMatches','-off.png','ballLocation','FloatBetween','shooter','debugcircle','fill','bubble-falling','anims','activePointer','break-0','maxTreshold','input','push','bestScore','then','GameOver\x20','audio/bubble-match.mp3','audio/switch-bubble.mp3','setText','#FFFFFF','gameobjectdown','4723671fSyuDn','onPointerMove','game-title','7fSFCpl','panelPause','boot','frame','bubbleThreshold','collider','getData','resuffle','map','Math','panel-score','onWorldBounds','Between','-on','delayedCall','.png','highScoreText','home','music','scene','score','click','hasBounced','has','shot','alphakind','world','pointerup','images/background.png','setFrame','panel-pause','findAffectedBubbles','1830828KANYUa','sprite','reset','right','Linear','shootBubble','isButton','setNextBubbleAttributes','disableBody','handleWorldBoundsCollision','sound-on','sin','round','updateBubblePreviews','create','Quad.easeOut','audio/bubble-hit.mp3','nextBubblePreview','forEach','setCircle','Angle','gridY','setInteractive','-off','animateFallingBubbles','game','onPointerDown','BestScore:\x20','4412775SgFrhc','velocityFromRotation','break-3','13691800cdVFHV','name','Scale','assets/atlas.json','restart','texture','dropBubblesAndAddNewLine','cannon','removeBubbles','handleCollision','break-1','snapBubbleToGrid','PAUSE','tweens','state','pushDuration','arcade','getItem','setVelocityX','pop','setBounce','resumeAll','Scene','#000000','preload','nextNextBubblePreview','updateBubblePhysicsBody','floodFill','Sine.easeInOut','updateAllBubblePhysicsBodies'];_0x3f0b=function(){return _0x231544;};return _0x3f0b();}var devStr=_0x1e1389(0xe1);class Boot extends Phaser[_0x1e1389(0x155)]{constructor(){const _0x2953d5=_0x1e1389;super(_0x2953d5(0x102));}[_0x1e1389(0x157)](){const _0x314d9f=_0x1e1389;this[_0x314d9f(0x173)][_0x314d9f(0xb6)](_0x314d9f(0x16c),_0x314d9f(0x11c)),this[_0x314d9f(0x173)]['image'](_0x314d9f(0xff),_0x314d9f(0xd4));}['create'](){const _0x1300d0=_0x1e1389;this['scale'][_0x1300d0(0xc5)](),this['scene']['start'](_0x1300d0(0x173));}}class Load extends Phaser[_0x1e1389(0x155)]{constructor(){const _0x1b2009=_0x1e1389;super(_0x1b2009(0x173));}[_0x1e1389(0x157)](){const _0x16c862=_0x1e1389;this['load'][_0x16c862(0xac)](_0x16c862(0xbf),_0x16c862(0x142)),this[_0x16c862(0xa1)][_0x16c862(0x121)](config[_0x16c862(0xaa)]/0x2,config[_0x16c862(0xab)]/0x2,'background'),this[_0x16c862(0xa1)][_0x16c862(0x121)](config[_0x16c862(0xaa)]/0x2,0x1f4,_0x16c862(0xff)),this['add']['text'](config[_0x16c862(0xaa)]/0x2,0x74e,devStr,{'fontFamily':_0x16c862(0xe3),'fontSize':0x1e,'align':_0x16c862(0x17d),'color':'#FFFFFF'})[_0x16c862(0xd3)](0.5);let _0x5a9863=this[_0x16c862(0xa1)][_0x16c862(0x16a)](config[_0x16c862(0xaa)]/0x2,config[_0x16c862(0xab)]-0x12c,0x258,0x28);_0x5a9863[_0x16c862(0x86)](0x4,0xffffff),_0x5a9863[_0x16c862(0xb4)]=0.7;let _0x474e19=this[_0x16c862(0xa1)][_0x16c862(0x16a)](config[_0x16c862(0xaa)]/0x2,config[_0x16c862(0xab)]-0x12c,0x24e,0x1e,0xffffff);_0x474e19[_0x16c862(0xb4)]=0.8,this['load']['on']('progress',_0x5adf6f=>{const _0x3e89ab=_0x16c862;_0x474e19[_0x3e89ab(0xaa)]=0x24e*_0x5adf6f;}),this['load']['on'](_0x16c862(0x85),()=>{const _0x3617a9=_0x16c862;_0x5a9863[_0x3617a9(0x16b)](),_0x474e19[_0x3617a9(0x16b)](),this[_0x3617a9(0x113)][_0x3617a9(0xbd)](_0x3617a9(0x111));},this),this[_0x16c862(0x173)][_0x16c862(0x95)]('bubble',_0x16c862(0x93),{'frameWidth':0x32,'frameHeight':0x32}),this['load'][_0x16c862(0x95)]('breaks',_0x16c862(0xa5),{'frameWidth':0x6e,'frameHeight':0x6e}),this['load']['audio']('click',_0x16c862(0x15f)),this[_0x16c862(0x173)][_0x16c862(0x162)](_0x16c862(0xee),_0x16c862(0x188)),this['load'][_0x16c862(0x162)](_0x16c862(0xde),'audio/gameover.mp3'),this['load'][_0x16c862(0x162)](_0x16c862(0x88),_0x16c862(0x130)),this['load'][_0x16c862(0x162)]('bubble-match',_0x16c862(0xf8)),this[_0x16c862(0x173)][_0x16c862(0x162)]('bubbles-down','audio/bubbles-down.mp3'),this['load']['audio'](_0x16c862(0x118),_0x16c862(0x170)),this[_0x16c862(0x173)][_0x16c862(0x162)]('switch-bubble',_0x16c862(0xf9));}}class Home extends Phaser[_0x1e1389(0x155)]{constructor(){const _0x5af8fe=_0x1e1389;super('home'),bestscore=getData(_0x5af8fe(0xf5))||0x0;}[_0x1e1389(0x12e)](){const _0x1ff0ff=_0x1e1389;var _0xa55f96=this;this[_0x1ff0ff(0xa1)][_0x1ff0ff(0x121)](config['width']/0x2,config[_0x1ff0ff(0xab)]/0x2,_0x1ff0ff(0x16c))['setDepth'](-0x1);let _0x5529db=this[_0x1ff0ff(0xa1)][_0x1ff0ff(0x121)](config[_0x1ff0ff(0xaa)]/0x2,0xc8,'game-title');this[_0x1ff0ff(0x14c)][_0x1ff0ff(0xa1)]({'targets':_0x5529db,'y':_0x5529db['y']+0x28,'duration':0x514,'ease':_0x1ff0ff(0x15b),'yoyo':!![],'repeat':-0x1}),this[_0x1ff0ff(0xa1)]['sprite'](config[_0x1ff0ff(0xaa)]/0x2,0x258,...spriteKey(_0x1ff0ff(0x10a))),this[_0x1ff0ff(0xa1)][_0x1ff0ff(0xcf)](0x17c,0x267,bestscore,{'fontFamily':_0x1ff0ff(0x119),'fontSize':0x20,'align':_0x1ff0ff(0x17d),'color':'#FFFFFF'})['setOrigin'](0.5);let _0x50df34=createButton(config['width']/0x2,0x352,_0x1ff0ff(0x9f),this),_0x2281f0=createButton(config[_0x1ff0ff(0xaa)]-0x4b,0x32,_0x1ff0ff(0x12a),this)[_0x1ff0ff(0x17c)](0.6);setSoundButton(_0x2281f0),this[_0x1ff0ff(0xf3)]['on'](_0x1ff0ff(0xfc),(_0x2ed418,_0x3135e2)=>{const _0x4d0d92=_0x1ff0ff;_0x3135e2[_0x4d0d92(0x126)]&&(playSound(_0x4d0d92(0x115),this),this[_0x4d0d92(0x14c)]['add']({'targets':_0x3135e2,'scaleX':0.9,'scaleY':0.9,'yoyo':!![],'ease':_0x4d0d92(0x124),'duration':0x64,'onComplete':function(){const _0x2adb1f=_0x4d0d92;_0x3135e2[_0x2adb1f(0x140)]===_0x2adb1f(0x9f)&&_0xa55f96[_0x2adb1f(0x113)][_0x2adb1f(0xbd)](_0x2adb1f(0x139)),_0x3135e2[_0x2adb1f(0x140)]===_0x2adb1f(0xb3)&&toggleSound(_0x3135e2);}},this));},this),this[_0x1ff0ff(0xa1)]['text'](config[_0x1ff0ff(0xaa)]/0x2,config[_0x1ff0ff(0xab)]-0x28,devStr,{'fontFamily':_0x1ff0ff(0x119),'fontSize':0x16,'align':'center','color':_0x1ff0ff(0x156)})['setOrigin'](0.5);}}const GameState={'PLAY':_0x1e1389(0x9f),'PAUSE':_0x1e1389(0xdd),'GAME_OVER':'game_over','SWAPPING':'swapping'};class Game extends Phaser[_0x1e1389(0x155)]{constructor(){const _0x139194=_0x1e1389;super(_0x139194(0x139)),this[_0x139194(0x183)]=0xe,this['gridHeight']=0x10,this['bubbleSize']=0x30,this['bubbleThreshold']=0x5,this[_0x139194(0x9d)]=0x28,this['maxColor']=0x8,this['shootSpeed']=0x5dc,this[_0x139194(0x9b)]=0xa,this['minMatchSize']=0x3,this[_0x139194(0xb8)]=0x3c,this[_0x139194(0x14e)]=0xc8,this[_0x139194(0xa7)]=0xc8,this['currentAngle']=0x0,this[_0x139194(0x116)]=![],this[_0x139194(0xb7)]=0x5,this[_0x139194(0x8f)]=0x0,this['animationDelay']=0x15e,this['canShoot']=!![],this[_0x139194(0xc6)]=![],this[_0x139194(0xd6)]=null,this[_0x139194(0xca)]=null,this['maxTreshold']=0.6,this['touchStartTime']=0x0,this[_0x139194(0x15e)]=![],this[_0x139194(0xa8)]=0xc8,this['dragStarted']=![];}[_0x1e1389(0x12e)](){const _0x5432ac=_0x1e1389,_0x32b20b=this;this[_0x5432ac(0x14d)]=GameState[_0x5432ac(0x185)],this[_0x5432ac(0xa1)][_0x5432ac(0x121)](config[_0x5432ac(0xaa)]/0x2,config['height']/0x2,_0x5432ac(0x16c))[_0x5432ac(0xbb)](-0x1),this['popup']=this[_0x5432ac(0xa1)][_0x5432ac(0x176)](),this[_0x5432ac(0xec)]=[],this[_0x5432ac(0x114)]=0x0,this[_0x5432ac(0xd9)]=0x4,this['bubbleGroup']=this[_0x5432ac(0xdf)][_0x5432ac(0xa1)]['staticGroup'](),this[_0x5432ac(0x8a)]=Array(this[_0x5432ac(0xa3)])[_0x5432ac(0xed)]()[_0x5432ac(0x108)](()=>Array(this[_0x5432ac(0x183)])[_0x5432ac(0xed)](null)),this[_0x5432ac(0xd8)](),this[_0x5432ac(0xa1)][_0x5432ac(0x121)](0x172,0x3e8,...spriteKey(_0x5432ac(0x90))),this[_0x5432ac(0xeb)]=this[_0x5432ac(0xa1)][_0x5432ac(0x121)](0x168,0x3d4,...spriteKey(_0x5432ac(0x146))),this[_0x5432ac(0xeb)][_0x5432ac(0xd3)](0.5,0.9),this[_0x5432ac(0xc1)]=this[_0x5432ac(0xa1)][_0x5432ac(0x121)](this['shooter']['x'],this['shooter']['y']-0xaa,...spriteKey(_0x5432ac(0xd7)))[_0x5432ac(0xbb)](0x2),this[_0x5432ac(0xc1)][_0x5432ac(0xd3)](0.5,0x1),this[_0x5432ac(0xe9)]={'x':this['shooter']['x'],'y':this['shooter']['y']},this[_0x5432ac(0xa9)]=this[_0x5432ac(0xdf)]['add']['sprite'](this['shooter']['x'],this['shooter']['y'],_0x5432ac(0x94),0x0),this[_0x5432ac(0xa9)][_0x5432ac(0x133)](this[_0x5432ac(0xcc)]/0x3),this[_0x5432ac(0xa9)][_0x5432ac(0xbb)](0x3),this[_0x5432ac(0xa9)]['disableBody'](!![],!![]),this['chest']=this[_0x5432ac(0xa1)][_0x5432ac(0x121)](0x64,0x3b1,...spriteKey(_0x5432ac(0xa2))),this[_0x5432ac(0x131)]=this[_0x5432ac(0xa1)]['sprite'](this[_0x5432ac(0xeb)]['x']-0x1e,this[_0x5432ac(0xeb)]['y']+0x3c,_0x5432ac(0x94),0x0)[_0x5432ac(0xd3)](0.52,0.5),this[_0x5432ac(0x158)]=this[_0x5432ac(0xa1)][_0x5432ac(0x121)](this[_0x5432ac(0xa2)]['x'],this['chest']['y']-0xf,_0x5432ac(0x94),0x0),this['nextBubbleColor']=Phaser[_0x5432ac(0x109)][_0x5432ac(0x10c)](0x0,this[_0x5432ac(0xd9)]-0x1),this[_0x5432ac(0xca)]=Phaser[_0x5432ac(0x109)][_0x5432ac(0x10c)](0x0,this[_0x5432ac(0xd9)]-0x1),this['updateBubblePreviews'](),this[_0x5432ac(0xb1)]=!![],this['updateAimLine'](this['input'][_0x5432ac(0xf0)]),this[_0x5432ac(0xf3)]['on']('pointerdown',this[_0x5432ac(0x13a)],this),this['input']['on'](_0x5432ac(0x16f),this[_0x5432ac(0xfe)],this),this[_0x5432ac(0xf3)]['on'](_0x5432ac(0x11b),this[_0x5432ac(0x15d)],this),this[_0x5432ac(0xdf)]['add'][_0x5432ac(0x105)](this[_0x5432ac(0xa9)],this[_0x5432ac(0x9a)],this['handleCollision'],null,this),this[_0x5432ac(0xd6)]=Phaser[_0x5432ac(0x109)][_0x5432ac(0x10c)](0x0,this[_0x5432ac(0xd9)]-0x1),this['nextBubblePreview'][_0x5432ac(0x11d)](this[_0x5432ac(0xd6)]),this[_0x5432ac(0xdf)][_0x5432ac(0x11a)][_0x5432ac(0x172)](0x0,0x0,this[_0x5432ac(0x139)]['config'][_0x5432ac(0xaa)],this['game'][_0x5432ac(0x17f)][_0x5432ac(0xab)]),this[_0x5432ac(0xa9)]['setCollideWorldBounds'](!![]),this[_0x5432ac(0xa9)][_0x5432ac(0x153)](0x1,0x0),this[_0x5432ac(0xa9)]['body'][_0x5432ac(0x10b)]=!![],this[_0x5432ac(0xdf)][_0x5432ac(0x11a)]['on'](_0x5432ac(0xc7),this[_0x5432ac(0x129)],this),this['currentShots']=0x0,this['add'][_0x5432ac(0x121)](0x0,-0xa,...spriteKey('top-shadow'))[_0x5432ac(0xd3)](0x0,0x0)[_0x5432ac(0xbb)](0x2),this[_0x5432ac(0xa1)][_0x5432ac(0xcf)](config[_0x5432ac(0xaa)]/0x2-0xc8,0xa,_0x5432ac(0xdb),{'fontFamily':'alphakind','fontSize':0x18,'color':_0x5432ac(0xfb)})[_0x5432ac(0xbb)](0x2),this[_0x5432ac(0xa1)][_0x5432ac(0xcf)](config[_0x5432ac(0xaa)]-0xc8,0xa,_0x5432ac(0xce),{'fontFamily':_0x5432ac(0x119),'fontSize':0x18,'color':_0x5432ac(0xfb)})[_0x5432ac(0xbb)](0x2),this[_0x5432ac(0x110)]=this[_0x5432ac(0xa1)]['text'](config[_0x5432ac(0xaa)]/0x2-0x32,0xa,'0\x20',{'fontFamily':_0x5432ac(0x119),'fontSize':0x18,'color':'#FFFFFF'})[_0x5432ac(0xbb)](0x2),this[_0x5432ac(0x178)]=this['add'][_0x5432ac(0xcf)](config[_0x5432ac(0xaa)]-0x64,0xa,'0\x20',{'fontFamily':_0x5432ac(0x119),'fontSize':0x18,'color':_0x5432ac(0xfb)})[_0x5432ac(0xbb)](0x2),this['updateTextScore'](),createButton(0x4b,game[_0x5432ac(0x17f)][_0x5432ac(0xab)]-0x4b,_0x5432ac(0x107),this),createButton(game[_0x5432ac(0x17f)][_0x5432ac(0xaa)]-0x4b,game[_0x5432ac(0x17f)][_0x5432ac(0xab)]-0x4b,'pause',this),this[_0x5432ac(0x101)](),this[_0x5432ac(0x99)]();const _0x2f1427=[{'key':_0x5432ac(0xf1),'frames':[0x0,0x1,0x2,0x3]},{'key':_0x5432ac(0x149),'frames':[0x4,0x5,0x6,0x7]},{'key':'break-2','frames':[0x8,0x9,0xa,0xb]},{'key':_0x5432ac(0x13e),'frames':[0xc,0xd,0xe,0xf]},{'key':'break-4','frames':[0x10,0x11,0x12,0x13]},{'key':_0x5432ac(0x9e),'frames':[0x14,0x15,0x16,0x17]},{'key':'break-6','frames':[0x18,0x19,0x1a,0x1b]},{'key':'break-7','frames':[0x1c,0x1d,0x1e,0x1f]}];_0x2f1427[_0x5432ac(0x132)](_0x2f79f1=>{const _0x43cccc=_0x5432ac;!this[_0x43cccc(0xef)]['exists'](_0x2f79f1[_0x43cccc(0x8d)])&&this[_0x43cccc(0xef)]['create']({'key':_0x2f79f1[_0x43cccc(0x8d)],'frameRate':0xf,'frames':this['anims'][_0x43cccc(0x16e)](_0x43cccc(0xbe),{'frames':_0x2f79f1['frames']})});});}['onPointerDown'](_0x210def){const _0x25f33b=_0x1e1389;if(!this['canShoot']||this[_0x25f33b(0x14d)]!==GameState[_0x25f33b(0x185)])return;this['touchStartTime']=_0x210def['time'],this[_0x25f33b(0x15e)]=![],this['dragStarted']=![],this[_0x25f33b(0x98)](_0x210def);}[_0x1e1389(0xfe)](_0x291c5a){const _0x1566ed=_0x1e1389;if(!this[_0x1566ed(0xb1)]||this['state']!==GameState['PLAY'])return;const _0x588fba=_0x291c5a[_0x1566ed(0xcb)]-this[_0x1566ed(0x163)];_0x588fba>this[_0x1566ed(0xa8)]&&(this[_0x1566ed(0x15e)]=!![],this['dragStarted']=!![],this['updateAimLine'](_0x291c5a));}[_0x1e1389(0x15d)](_0x5b035f){const _0x4f64c0=_0x1e1389;if(!this[_0x4f64c0(0xb1)]||this[_0x4f64c0(0x14d)]!==GameState[_0x4f64c0(0x185)])return;const _0x497c35=_0x5b035f[_0x4f64c0(0xcb)]-this[_0x4f64c0(0x163)];if(!this[_0x4f64c0(0x8e)]||_0x497c35<=this[_0x4f64c0(0xa8)])this[_0x4f64c0(0x125)](_0x5b035f);else this[_0x4f64c0(0x15e)]&&this[_0x4f64c0(0x125)](_0x5b035f);this['isDragging']=![],this[_0x4f64c0(0x8e)]=![];}[_0x1e1389(0x98)](_0x46edfc){const _0xb48e46=_0x1e1389;if(!this[_0xb48e46(0xb1)]||this[_0xb48e46(0x14d)]!==GameState[_0xb48e46(0x185)])return;let _0x2e4a55=Phaser[_0xb48e46(0x109)][_0xb48e46(0x134)][_0xb48e46(0x10c)](this[_0xb48e46(0xeb)]['x'],this[_0xb48e46(0xeb)]['y'],_0x46edfc['x'],_0x46edfc['y']);if(_0x2e4a55>-this[_0xb48e46(0xf2)]&&_0x2e4a55<Math['PI']/0x2)_0x2e4a55=-this[_0xb48e46(0xf2)];if(_0x2e4a55<-Math['PI']+this[_0xb48e46(0xf2)]||_0x2e4a55>Math['PI']/0x2)_0x2e4a55=-Math['PI']+this[_0xb48e46(0xf2)];this[_0xb48e46(0xeb)][_0xb48e46(0xa6)](_0x2e4a55+Math['PI']/0x2);let _0x464204=0x7d,_0x2408e3=0x1f,_0x219ed2=this[_0xb48e46(0xeb)]['x']+Math[_0xb48e46(0xcd)](_0x2e4a55)*_0x464204,_0x20e992=this['shooter']['y']+Math['sin'](_0x2e4a55)*_0x464204;this[_0xb48e46(0xc1)][_0xb48e46(0xa6)](_0x2e4a55+Math['PI']/0x2),this[_0xb48e46(0xc1)][_0xb48e46(0x160)](_0x219ed2,_0x20e992),this['nextBubblePreview']['setVisible'](!![]),this[_0xb48e46(0x131)]['setRotation'](_0x2e4a55+Math['PI']/0x2),this[_0xb48e46(0x131)][_0xb48e46(0x160)](this[_0xb48e46(0xeb)]['x']+Math[_0xb48e46(0xcd)](_0x2e4a55)*_0x2408e3,this[_0xb48e46(0xeb)]['y']+Math[_0xb48e46(0x12b)](_0x2e4a55)*_0x2408e3);}[_0x1e1389(0x99)](){const _0x302823=_0x1e1389;this[_0x302823(0xf3)]['on'](_0x302823(0xfc),(_0x5417e6,_0x4e9912)=>{const _0x3f4431=_0x302823;_0x4e9912[_0x3f4431(0x126)]&&(playSound(_0x3f4431(0x115),this),this[_0x3f4431(0x14c)][_0x3f4431(0xa1)]({'targets':_0x4e9912,'scaleX':0.8,'scaleY':0.8,'duration':0x64,'yoyo':!![],'onComplete':()=>{const _0xc8a945=_0x3f4431;if(GameState['PLAY']===this[_0xc8a945(0x14d)]||GameState[_0xc8a945(0x14b)]===this['state'])switch(_0x4e9912[_0xc8a945(0x140)]){case'resuffle':this['canShoot']&&this['swapBubbleColors']();break;case _0xc8a945(0xdd):this[_0xc8a945(0x9c)]();break;case _0xc8a945(0x9f):this[_0xc8a945(0x167)][_0xc8a945(0xc4)](![]),this[_0xc8a945(0xef)][_0xc8a945(0x154)](),this[_0xc8a945(0xdf)]['resume'](),this['state']=GameState[_0xc8a945(0x185)];break;case'sound':toggleSound(_0x4e9912);break;case _0xc8a945(0x143):this['state']=GameState[_0xc8a945(0x185)],this['anims']['resumeAll'](),this[_0xc8a945(0xdf)][_0xc8a945(0x166)](),this[_0xc8a945(0x113)][_0xc8a945(0x143)]();break;case _0xc8a945(0x89):score=this['score'],this[_0xc8a945(0x113)]['start'](_0xc8a945(0x111)),this[_0xc8a945(0xef)][_0xc8a945(0x154)](),this[_0xc8a945(0xdf)][_0xc8a945(0x166)]();break;default:break;}if(GameState[_0xc8a945(0x169)]===this[_0xc8a945(0x14d)])switch(_0x4e9912[_0xc8a945(0x140)]){case _0xc8a945(0x143):this[_0xc8a945(0x14d)]=GameState['PLAY'],this['scene']['restart']();break;case _0xc8a945(0x89):score=this[_0xc8a945(0x114)],this[_0xc8a945(0x113)]['start'](_0xc8a945(0x111));break;default:break;}}}));});}['createBubbleGrid'](){const _0x4c36c5=_0x1e1389,_0x407016=Phaser[_0x4c36c5(0x109)][_0x4c36c5(0x10c)](0x3,0x5);for(let _0x238770=0x0;_0x238770<_0x407016;_0x238770++){for(let _0x184637=0x0;_0x184637<this[_0x4c36c5(0x183)];_0x184637++){if(Phaser[_0x4c36c5(0x109)][_0x4c36c5(0xea)](0x0,0x1)>0.1){let _0x291321=_0x184637*this[_0x4c36c5(0xcc)]+this['bubbleSize']/0x2,_0x2486a4=_0x238770*(this[_0x4c36c5(0xcc)]-this[_0x4c36c5(0x104)])+this['bubbleSize']/0x2+this[_0x4c36c5(0x9d)];if(_0x238770%0x2===0x1)_0x291321+=this[_0x4c36c5(0xcc)]/0x2;let _0x94f3a2=Phaser[_0x4c36c5(0x109)]['Between'](0x0,this[_0x4c36c5(0xd9)]-0x1),_0x1e05d4=this['bubbleGroup'][_0x4c36c5(0x12e)](_0x291321,_0x2486a4,'bubble',_0x94f3a2);_0x1e05d4['setCircle'](this[_0x4c36c5(0xcc)]/0x2),_0x1e05d4['setData']('gridX',_0x184637),_0x1e05d4[_0x4c36c5(0xb0)](_0x4c36c5(0x135),_0x238770),this[_0x4c36c5(0x8a)][_0x238770][_0x184637]=_0x1e05d4;}}}}['updateAimLine'](_0x3e6a1b){const _0x59f9de=_0x1e1389;if(!this[_0x59f9de(0xb1)]||this[_0x59f9de(0x14d)]!==GameState[_0x59f9de(0x185)])return;let _0x4d9545=Phaser[_0x59f9de(0x109)][_0x59f9de(0x134)][_0x59f9de(0x10c)](this[_0x59f9de(0xeb)]['x'],this[_0x59f9de(0xeb)]['y'],_0x3e6a1b['x'],_0x3e6a1b['y']);if(_0x4d9545>-this[_0x59f9de(0xf2)]&&_0x4d9545<Math['PI']/0x2)_0x4d9545=-this[_0x59f9de(0xf2)];if(_0x4d9545<-Math['PI']+this[_0x59f9de(0xf2)]||_0x4d9545>Math['PI']/0x2)_0x4d9545=-Math['PI']+this[_0x59f9de(0xf2)];this[_0x59f9de(0xeb)][_0x59f9de(0xa6)](_0x4d9545+Math['PI']/0x2);let _0x12faa3=0x7d,_0x5afd32=0x1f,_0x32346c=this[_0x59f9de(0xeb)]['x']+Math[_0x59f9de(0xcd)](_0x4d9545)*_0x12faa3,_0x4a4b21=this['shooter']['y']+Math[_0x59f9de(0x12b)](_0x4d9545)*_0x12faa3;this['aimLine'][_0x59f9de(0xa6)](_0x4d9545+Math['PI']/0x2),this[_0x59f9de(0xc1)][_0x59f9de(0x160)](_0x32346c,_0x4a4b21),this[_0x59f9de(0x131)][_0x59f9de(0xc4)](!![]),this[_0x59f9de(0x131)][_0x59f9de(0xa6)](_0x4d9545+Math['PI']/0x2),this[_0x59f9de(0x131)][_0x59f9de(0x160)](this['shooter']['x']+Math['cos'](_0x4d9545)*_0x5afd32,this[_0x59f9de(0xeb)]['y']+Math['sin'](_0x4d9545)*_0x5afd32);}[_0x1e1389(0x12d)](){const _0xcf870e=_0x1e1389;this[_0xcf870e(0x131)][_0xcf870e(0x11d)](this[_0xcf870e(0xd6)]),this[_0xcf870e(0x158)]['setFrame'](this['nextNextBubbleColor']);}[_0x1e1389(0x125)](_0xda75aa){const _0x4dc093=_0x1e1389;if(!this['canShoot']||this[_0x4dc093(0xc6)]||this['state']!==GameState[_0x4dc093(0x185)])return;this[_0x4dc093(0xc1)][_0x4dc093(0xc4)](![]);let _0x5e1e0c=Phaser['Math'][_0x4dc093(0x134)][_0x4dc093(0x10c)](this[_0x4dc093(0xeb)]['x'],this['shooter']['y'],_0xda75aa['x'],_0xda75aa['y']);if(_0x5e1e0c>-this[_0x4dc093(0xf2)]&&_0x5e1e0c<Math['PI']/0x2)return;if(_0x5e1e0c<-Math['PI']+this[_0x4dc093(0xf2)]||_0x5e1e0c>Math['PI']/0x2)return;this[_0x4dc093(0xa9)]['setFrame'](this['nextBubbleColor']),this[_0x4dc093(0xa9)]['enableBody'](!![],this[_0x4dc093(0xeb)]['x'],this[_0x4dc093(0xeb)]['y'],!![],!![]),this[_0x4dc093(0xa9)][_0x4dc093(0x175)](!![]),this[_0x4dc093(0xa9)]['setBounce'](0x1,0x0),this['physics'][_0x4dc093(0x13d)](_0x5e1e0c,this[_0x4dc093(0xc9)],this[_0x4dc093(0xa9)]['body'][_0x4dc093(0xe2)]),this[_0x4dc093(0xb1)]=![],this['nextBubblePreview'][_0x4dc093(0xc4)](![]),this['currentAngle']=_0x5e1e0c,this[_0x4dc093(0x116)]=![],playSound('shot',this);}[_0x1e1389(0x129)](_0x5b5af,_0x2bc519,_0x95c50b,_0x1b0d57,_0x4e17d7){const _0x1ad9c9=_0x1e1389;if(_0x5b5af[_0x1ad9c9(0xc3)]===this[_0x1ad9c9(0xa9)]){if(_0x2bc519)this[_0x1ad9c9(0xd2)]();else(_0x1b0d57||_0x4e17d7)&&(this[_0x1ad9c9(0x116)]=!![],this[_0x1ad9c9(0xb5)]=Math['atan2'](_0x5b5af[_0x1ad9c9(0xe2)]['y'],_0x5b5af[_0x1ad9c9(0xe2)]['x']));}}['repositionShootableBubble'](){const _0x38dd7a=_0x1e1389;this[_0x38dd7a(0xa9)][_0x38dd7a(0x128)](!![],!![]),this['canShoot']=!![],this['nextBubblePreview']['setVisible'](!![]),this[_0x38dd7a(0x116)]=![],this[_0x38dd7a(0xc1)][_0x38dd7a(0xc4)](!![]),console[_0x38dd7a(0xba)](_0x38dd7a(0x182));}[_0x1e1389(0x16d)](_0x4639d5,_0xcaa48c,_0x18ff98,_0x1ef26e,_0xe7daa2){const _0x34caa6=_0x1e1389;_0x4639d5[_0x34caa6(0xc3)]===this[_0x34caa6(0xa9)]&&(this['hasBounced']=!![],this[_0x34caa6(0xb5)]=Math['atan2'](_0x4639d5['velocity']['y'],_0x4639d5[_0x34caa6(0xe2)]['x']));}[_0x1e1389(0x148)](_0x59d513,_0x29dddd){const _0x2a3465=_0x1e1389;playSound(_0x2a3465(0x88),this),_0x59d513['body'][_0x2a3465(0xc8)]();const _0x5e6488={'x':_0x59d513['x'],'y':_0x59d513['y']};let _0x384175=this[_0x2a3465(0x14a)](_0x59d513,_0x29dddd);if(_0x384175){if(this[_0x2a3465(0xe0)](_0x384175,_0x5e6488)){this[_0x2a3465(0x17a)]();return;}const _0x5eecb3=this[_0x2a3465(0x8a)][_0x384175['y']][_0x384175['x']];this[_0x2a3465(0xc6)]=!![],this[_0x2a3465(0xb1)]=![],this[_0x2a3465(0x168)](_0x5e6488,this[_0x2a3465(0xb5)])[_0x2a3465(0xf6)](()=>{const _0x4543f3=_0x2a3465;this[_0x4543f3(0x159)](_0x5eecb3),this[_0x4543f3(0xe7)](_0x384175['x'],_0x384175['y']),this[_0x4543f3(0xae)](),this['time']['delayedCall'](this[_0x4543f3(0x164)],()=>{const _0x32fbb1=_0x4543f3;this[_0x32fbb1(0xc6)]=![],this[_0x32fbb1(0x8f)]++,this[_0x32fbb1(0x8f)]>=this[_0x32fbb1(0xb7)]?(this[_0x32fbb1(0xd9)]=Math['min'](this['colors']+0x1,this[_0x32fbb1(0xe6)]),this[_0x32fbb1(0x145)](),this['currentShots']=0x0):(this[_0x32fbb1(0xb1)]=!![],this[_0x32fbb1(0x127)](),this[_0x32fbb1(0xc1)][_0x32fbb1(0xc4)](!![]));});});}else this[_0x2a3465(0xb1)]=!![],this[_0x2a3465(0xc1)][_0x2a3465(0xc4)](!![]);this[_0x2a3465(0xa9)][_0x2a3465(0x128)](!![],!![]),this['hasBounced']=![];}[_0x1e1389(0x127)](){const _0xb615a=_0x1e1389;this[_0xb615a(0x131)]['setVisible'](!![]),this[_0xb615a(0xd6)]=this[_0xb615a(0xca)],this['nextNextBubbleColor']=Phaser[_0xb615a(0x109)][_0xb615a(0x10c)](0x0,this[_0xb615a(0xd9)]-0x1),this['updateBubblePreviews']();}[_0x1e1389(0xe0)](_0x1bcbf6,_0x5bae46){const _0x44114d=_0x1e1389;if(_0x1bcbf6['y']===this[_0x44114d(0xa3)]-0x1){const _0x589a13=(this[_0x44114d(0xa3)]-0.5)*(this[_0x44114d(0xcc)]-this['bubbleThreshold'])-this['bubbleOffsetTop'];if(_0x5bae46['y']>_0x589a13)return!![];}return![];}[_0x1e1389(0x168)](_0x7e2b8e,_0x262498){return new Promise(_0x125344=>{const _0x1a394f=_0xeee8,_0x94e4e1=this[_0x1a394f(0x11f)](_0x7e2b8e);let _0x524a3d=0x0;const _0x3695e1=_0x94e4e1[_0x1a394f(0xdc)];_0x94e4e1['forEach']((_0x5c7dcb,_0xf36840)=>{const _0x1577b1=_0x1a394f,_0xcb785a=Phaser[_0x1577b1(0x109)]['Distance'][_0x1577b1(0x10c)](_0x5c7dcb['x'],_0x5c7dcb['y'],_0x7e2b8e['x'],_0x7e2b8e['y']),_0x2c4d3d=0x1-_0xcb785a/(this['bubbleSize']*0x3),_0x17af91=Math['cos'](_0x262498)*this[_0x1577b1(0xb8)]*_0x2c4d3d,_0x1ec5d0=Math[_0x1577b1(0x12b)](_0x262498)*this[_0x1577b1(0xb8)]*_0x2c4d3d,_0x5ba972=_0x5c7dcb[_0x1577b1(0x106)](_0x1577b1(0x8c)),_0x348ebf=_0x5c7dcb[_0x1577b1(0x106)]('gridY'),_0x4d0eb0=_0x5ba972*this[_0x1577b1(0xcc)]+this[_0x1577b1(0xcc)]/0x2+(_0x348ebf%0x2===0x1?this[_0x1577b1(0xcc)]/0x2:0x0),_0x2fcf8d=_0x348ebf*(this[_0x1577b1(0xcc)]-this['bubbleThreshold'])+this[_0x1577b1(0xcc)]/0x2+this[_0x1577b1(0x9d)],_0x4854f8=this[_0x1577b1(0x14c)][_0x1577b1(0xa1)]({'targets':_0x5c7dcb,'x':_0x5c7dcb['x']+_0x17af91,'y':_0x5c7dcb['y']+_0x1ec5d0,'duration':this[_0x1577b1(0x14e)],'ease':_0x1577b1(0x12f),'yoyo':!![],'onComplete':()=>{const _0x5ddeb7=_0x1577b1,_0x27da18=this[_0x5ddeb7(0x14c)]['add']({'targets':_0x5c7dcb,'x':_0x4d0eb0,'y':_0x2fcf8d,'duration':this[_0x5ddeb7(0xa7)],'ease':_0x5ddeb7(0x174),'onComplete':()=>{const _0xbb85c7=_0x5ddeb7;this[_0xbb85c7(0x159)](_0x5c7dcb),_0x524a3d++,_0x524a3d===_0x3695e1&&_0x125344();}});}});}),_0x3695e1===0x0&&_0x125344();});}[_0x1e1389(0x11f)](_0x197bae){const _0x3bda33=_0x1e1389,_0x1b2ef6=[],_0x5b3af1=this[_0x3bda33(0xcc)]*0x3;return this[_0x3bda33(0x9a)][_0x3bda33(0xa0)]()[_0x3bda33(0x132)](_0x2d23bb=>{const _0x21c6e8=_0x3bda33;Phaser[_0x21c6e8(0x109)][_0x21c6e8(0xd5)][_0x21c6e8(0x10c)](_0x2d23bb['x'],_0x2d23bb['y'],_0x197bae['x'],_0x197bae['y'])<=_0x5b3af1&&_0x1b2ef6[_0x21c6e8(0xf4)](_0x2d23bb);}),_0x1b2ef6;}['snapBubbleToGrid'](_0x2a987d,_0x5abd5c){const _0x5dfcfa=_0x1e1389;let _0x254ab1=Math[_0x5dfcfa(0x12c)]((_0x2a987d['x']-this[_0x5dfcfa(0xcc)]/0x2)/this['bubbleSize']),_0x52a9c2=Math['round']((_0x2a987d['y']-this['bubbleOffsetTop']-(this[_0x5dfcfa(0xcc)]-this[_0x5dfcfa(0x104)])/0x2)/this['bubbleSize']);if(_0x52a9c2%0x2===0x1)_0x254ab1=Math['round']((_0x2a987d['x']-this[_0x5dfcfa(0xcc)]/0x2-this[_0x5dfcfa(0xcc)]/0x2)/this[_0x5dfcfa(0xcc)]);if(this[_0x5dfcfa(0x8a)][_0x52a9c2][_0x254ab1]!==null)_0x52a9c2=Math[_0x5dfcfa(0x12c)]((_0x2a987d['y']-this['bubbleThreshold']-this[_0x5dfcfa(0x9d)]-this[_0x5dfcfa(0xcc)]/0x2)/(this[_0x5dfcfa(0xcc)]-this['bubbleThreshold']));else{}_0x52a9c2=Math[_0x5dfcfa(0x91)](0x0,_0x52a9c2);const _0x4cd3c3=[{'dx':0x0,'dy':0x0},{'dx':-0x1,'dy':0x0},{'dx':0x1,'dy':0x0},{'dx':0x0,'dy':-0x1},{'dx':-0x1,'dy':-0x1},{'dx':0x1,'dy':-0x1}];let _0x54f900=Infinity,_0x4170aa=null;for(let _0x1eaa56 of _0x4cd3c3){let _0x49c3d5=_0x254ab1+_0x1eaa56['dx'],_0x5700fa=_0x52a9c2+_0x1eaa56['dy'];const _0x5c7fd9=this[_0x5dfcfa(0x181)](_0x49c3d5,_0x5700fa);if(!_0x5c7fd9)continue;_0x5700fa%0x2!==0x0&&(_0x49c3d5+=0.5);if(_0x49c3d5>=0x0&&_0x49c3d5<=this[_0x5dfcfa(0x183)]&&_0x5700fa>=0x0&&_0x5700fa<this[_0x5dfcfa(0xa3)]){let _0x145289=_0x49c3d5*this[_0x5dfcfa(0xcc)]+this[_0x5dfcfa(0xcc)]/0x2,_0x2aeedc=_0x5700fa*(this[_0x5dfcfa(0xcc)]-this[_0x5dfcfa(0x104)])+this[_0x5dfcfa(0xcc)]/0x2+this[_0x5dfcfa(0x9d)],_0x54496e=Phaser[_0x5dfcfa(0x109)]['Distance']['Between'](_0x2a987d['x'],_0x2a987d['y'],_0x145289,_0x2aeedc);_0x54496e<_0x54f900&&(!this[_0x5dfcfa(0x8a)][_0x5700fa][Math[_0x5dfcfa(0x17b)](_0x49c3d5)]||this[_0x5dfcfa(0x8a)][_0x5700fa][Math['floor'](_0x49c3d5)]!==null||this[_0x5dfcfa(0x8a)][_0x5700fa][Math[_0x5dfcfa(0x17b)](_0x49c3d5)]===_0x5abd5c)&&(_0x54f900=_0x54496e,_0x4170aa={'x':_0x49c3d5,'y':_0x5700fa});}}if(_0x4170aa){let _0x5ab369=_0x4170aa['x']*this[_0x5dfcfa(0xcc)]+this['bubbleSize']/0x2,_0x3971ad=_0x4170aa['y']*(this[_0x5dfcfa(0xcc)]-this['bubbleThreshold'])+this[_0x5dfcfa(0xcc)]/0x2+this['bubbleOffsetTop'];if(_0x4170aa['y']%0x2===0x1)_0x5ab369+=this[_0x5dfcfa(0xcc)]/0x2;let _0x21d3e5=this[_0x5dfcfa(0x9a)][_0x5dfcfa(0x12e)](_0x5ab369,_0x3971ad,'bubble',_0x2a987d['frame'][_0x5dfcfa(0x140)]);return _0x21d3e5[_0x5dfcfa(0x133)](this[_0x5dfcfa(0xcc)]/0x2),_0x21d3e5['setData'](_0x5dfcfa(0x8c),Math[_0x5dfcfa(0x17b)](_0x4170aa['x'])),_0x21d3e5['setData'](_0x5dfcfa(0x135),_0x4170aa['y']),this[_0x5dfcfa(0x8a)][_0x4170aa['y']][Math['floor'](_0x4170aa['x'])]=_0x21d3e5,this['updateBubblePhysicsBody'](_0x21d3e5),{'x':Math['floor'](_0x4170aa['x']),'y':_0x4170aa['y']};}else return null;}[_0x1e1389(0x159)](_0x1a906e){const _0x52b49d=_0x1e1389,_0x1a2679=_0x1a906e[_0x52b49d(0x106)]('gridX'),_0x57e7ac=_0x1a906e[_0x52b49d(0x106)]('gridY'),_0x1670ce=_0x1a2679*this[_0x52b49d(0xcc)]+this['bubbleSize']/0x2+(_0x57e7ac%0x2===0x1?this['bubbleSize']/0x2:0x0),_0x2a64de=_0x57e7ac*(this[_0x52b49d(0xcc)]-this[_0x52b49d(0x104)])+this[_0x52b49d(0xcc)]/0x2+this['bubbleOffsetTop'];_0x1a906e[_0x52b49d(0x160)](_0x1670ce,_0x2a64de),_0x1a906e[_0x52b49d(0xc2)][_0x52b49d(0x122)](_0x1670ce,_0x2a64de);}[_0x1e1389(0xe7)](_0x4943df,_0x5e6ad9){const _0xbc0d20=_0x1e1389;let _0x329f53=this['grid'][_0x5e6ad9][_0x4943df]['frame'][_0xbc0d20(0x140)],_0x3244c2=new Set(),_0xb50785=[{'x':_0x4943df,'y':_0x5e6ad9}],_0x39f1cf=[];while(_0xb50785[_0xbc0d20(0xdc)]>0x0){let _0x584318=_0xb50785[_0xbc0d20(0x152)](),_0x5a1a3e=_0x584318['x']+','+_0x584318['y'];if(_0x3244c2['has'](_0x5a1a3e))continue;_0x3244c2[_0xbc0d20(0xa1)](_0x5a1a3e),this[_0xbc0d20(0x8a)][_0x584318['y']][_0x584318['x']]&&this['grid'][_0x584318['y']][_0x584318['x']][_0xbc0d20(0x103)][_0xbc0d20(0x140)]===_0x329f53&&(_0x39f1cf['push'](_0x584318),this[_0xbc0d20(0xb9)](_0x584318['x'],_0x584318['y'])['forEach'](_0x3a9569=>_0xb50785[_0xbc0d20(0xf4)](_0x3a9569)));}_0x39f1cf[_0xbc0d20(0xdc)]>=this[_0xbc0d20(0x171)]&&(this[_0xbc0d20(0x17e)](_0x39f1cf[_0xbc0d20(0xdc)]*this['soreMultipler']),this['applyPushEffect'](_0x39f1cf)[_0xbc0d20(0xf6)](()=>{const _0x50f54c=_0xbc0d20;this[_0x50f54c(0x147)](_0x39f1cf)[_0x50f54c(0xf6)](()=>{const _0x2d0400=_0x50f54c;this[_0x2d0400(0xae)]();});}));}['applyPushEffect'](_0xf05903){return new Promise(_0x5267a8=>{const _0x398ada=_0xeee8;let _0xccc12a=new Set();_0xf05903[_0x398ada(0x132)](_0x3ef0df=>{const _0x2d68b9=_0x398ada;this[_0x2d68b9(0xb9)](_0x3ef0df['x'],_0x3ef0df['y'])['forEach'](_0x1d0cd1=>{const _0x1448f0=_0x2d68b9;this['grid'][_0x1d0cd1['y']][_0x1d0cd1['x']]&&_0xccc12a[_0x1448f0(0xa1)](this['grid'][_0x1d0cd1['y']][_0x1d0cd1['x']]);});});let _0x107af2=[];_0xccc12a[_0x398ada(0x132)](_0x399874=>{const _0x3ffd2f=_0x398ada;let _0x3d06ab=_0x399874['x'],_0x5d5648=_0x399874['y'],_0x132734=Phaser[_0x3ffd2f(0x109)][_0x3ffd2f(0x134)]['Between'](_0xf05903[0x0]['x']*this['bubbleSize'],_0xf05903[0x0]['y']*this[_0x3ffd2f(0xcc)],_0x399874['x'],_0x399874['y']),_0x24317b=this[_0x3ffd2f(0x14c)][_0x3ffd2f(0xa1)]({'targets':_0x399874,'x':_0x399874['x']+Math[_0x3ffd2f(0xcd)](_0x132734)*this['pushDistance']/0x4,'y':_0x399874['y']+Math['sin'](_0x132734)*this[_0x3ffd2f(0xb8)]/0x4,'duration':this[_0x3ffd2f(0x14e)],'ease':_0x3ffd2f(0x12f),'onComplete':()=>{const _0xf0077c=_0x3ffd2f;this[_0xf0077c(0x14c)]['add']({'targets':_0x399874,'x':_0x3d06ab,'y':_0x5d5648,'duration':this[_0xf0077c(0xa7)],'ease':_0xf0077c(0x184)});}});_0x107af2[_0x3ffd2f(0xf4)](_0x24317b);}),this[_0x398ada(0x14c)][_0x398ada(0xa1)]({'targets':{},'duration':this[_0x398ada(0x14e)]+this['returnDuration'],'onComplete':_0x5267a8});});}['getNeighbors'](_0x373440,_0x16881c){let _0x1868c6=[],_0xfc65a0=_0x16881c%0x2===0x0?[{'dx':-0x1,'dy':0x0},{'dx':0x1,'dy':0x0},{'dx':0x0,'dy':-0x1},{'dx':-0x1,'dy':-0x1},{'dx':0x0,'dy':0x1},{'dx':-0x1,'dy':0x1}]:[{'dx':-0x1,'dy':0x0},{'dx':0x1,'dy':0x0},{'dx':0x1,'dy':-0x1},{'dx':0x0,'dy':-0x1},{'dx':0x1,'dy':0x1},{'dx':0x0,'dy':0x1}];return _0xfc65a0['forEach'](_0x15a6cf=>{const _0x4a3c1c=_0xeee8;let _0x2d08d0=_0x373440+_0x15a6cf['dx'],_0xae9bb=_0x16881c+_0x15a6cf['dy'];_0x2d08d0>=0x0&&_0x2d08d0<=this['gridWidth']&&_0xae9bb>=0x0&&_0xae9bb<this[_0x4a3c1c(0xa3)]&&_0x1868c6[_0x4a3c1c(0xf4)]({'x':_0x2d08d0,'y':_0xae9bb});}),_0x1868c6;}['checkBubbleNotFloating'](_0x1d2dad,_0x1b463b){const _0x48538f=_0x1e1389,_0x3e6df2=this['getNeighbors'](_0x1d2dad,_0x1b463b);let _0x3a2a6f=![];for(const _0x51e10b of _0x3e6df2){const _0xb0fe04=this[_0x48538f(0x8a)][_0x51e10b['y']][_0x51e10b['x']];if(_0xb0fe04){_0x3a2a6f=!![];break;}}return _0x3a2a6f;}[_0x1e1389(0x147)](_0x53292c){const _0x178c08=_0x1e1389;return playSound(_0x178c08(0x180),this),new Promise(_0xb353fd=>{const _0x23a8eb=_0x178c08;let _0x1f0fef=_0x53292c[_0x23a8eb(0xdc)];_0x53292c[_0x23a8eb(0x132)](_0x154b3f=>{const _0x2c7d24=_0x23a8eb;this[_0x2c7d24(0x8a)][_0x154b3f['y']][_0x154b3f['x']][_0x2c7d24(0x9f)]('break-'+this[_0x2c7d24(0x8a)][_0x154b3f['y']][_0x154b3f['x']]['frame'][_0x2c7d24(0x140)]),this[_0x2c7d24(0x8a)][_0x154b3f['y']][_0x154b3f['x']]['once'](_0x2c7d24(0x179),()=>{const _0x70c505=_0x2c7d24;this['grid'][_0x154b3f['y']][_0x154b3f['x']][_0x70c505(0x16b)](),this[_0x70c505(0x8a)][_0x154b3f['y']][_0x154b3f['x']]=null,_0x1f0fef--;if(_0x1f0fef===0x0)_0xb353fd();});});});}[_0x1e1389(0xae)](){const _0x522379=_0x1e1389;let _0x58dafd=new Set(),_0x104ee0=new Set();for(let _0x4dc91c=0x0;_0x4dc91c<=this[_0x522379(0x183)];_0x4dc91c++){this[_0x522379(0x8a)][0x0][_0x4dc91c]&&this['floodFill'](_0x4dc91c,0x0,_0x58dafd,_0x104ee0);}let _0x11652a=[];for(let _0x4bfcbb=0x0;_0x4bfcbb<this[_0x522379(0xa3)];_0x4bfcbb++){for(let _0xccde72=0x0;_0xccde72<=this[_0x522379(0x183)];_0xccde72++){this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72]&&!_0x104ee0[_0x522379(0x117)](_0xccde72+','+_0x4bfcbb)&&(_0x11652a['push']({'x':this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72]['x'],'y':this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72]['y'],'frame':this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72][_0x522379(0x103)][_0x522379(0x140)]}),this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72][_0x522379(0x16b)](),this[_0x522379(0x8a)][_0x4bfcbb][_0xccde72]=null);}}this[_0x522379(0x138)](_0x11652a),this[_0x522379(0x17e)](_0x11652a['length']*this[_0x522379(0x9b)]);}[_0x1e1389(0x138)](_0x177912){const _0x28fae8=_0x1e1389;_0x177912[_0x28fae8(0x132)](_0x5bb68b=>{const _0xc6fe5d=_0x28fae8;let _0x5876c7=this[_0xc6fe5d(0xdf)]['add']['sprite'](_0x5bb68b['x'],_0x5bb68b['y'],_0xc6fe5d(0x94),_0x5bb68b['frame']);_0x5876c7[_0xc6fe5d(0x133)](this[_0xc6fe5d(0xcc)]/0x2),_0x5876c7[_0xc6fe5d(0x153)](0.5),_0x5876c7['setCollideWorldBounds'](![]),_0x5876c7['body']['setGravityY'](0x190),_0x5876c7[_0xc6fe5d(0x151)](Phaser[_0xc6fe5d(0x109)][_0xc6fe5d(0x10c)](-0x64,0x64)),this[_0xc6fe5d(0x14c)][_0xc6fe5d(0xa1)]({'targets':_0x5876c7,'angle':Phaser[_0xc6fe5d(0x109)][_0xc6fe5d(0x10c)](-0x168,0x168),'duration':0x3e8,'ease':_0xc6fe5d(0x124)}),this[_0xc6fe5d(0xcb)][_0xc6fe5d(0x10e)](0x7d0,()=>{_0x5876c7['destroy']();});}),_0x177912[_0x28fae8(0xdc)]&&playSound(_0x28fae8(0xee),this);}[_0x1e1389(0x15a)](_0x28eda3,_0x340f8b,_0x139c13,_0x262782){const _0x4545e2=_0x1e1389;let _0x14248e=_0x28eda3+','+_0x340f8b;if(_0x139c13[_0x4545e2(0x117)](_0x14248e))return;_0x139c13[_0x4545e2(0xa1)](_0x14248e);if(!this['grid'][_0x340f8b][_0x28eda3])return;_0x262782[_0x4545e2(0xa1)](_0x14248e),this[_0x4545e2(0xb9)](_0x28eda3,_0x340f8b)['forEach'](_0x4db6f0=>{const _0x25e0a1=_0x4545e2;this[_0x25e0a1(0x15a)](_0x4db6f0['x'],_0x4db6f0['y'],_0x139c13,_0x262782);});}[_0x1e1389(0x145)](){const _0x180c66=_0x1e1389;if(this['isAnimating'])return;playSound('bubbles-down',this),this[_0x180c66(0xc6)]=!![],this[_0x180c66(0xb1)]=![];for(let _0x394b67=this['gridHeight']-0x1;_0x394b67>0x0;_0x394b67--){for(let _0x58aa9b=0x0;_0x58aa9b<this[_0x180c66(0x183)];_0x58aa9b++){if(this[_0x180c66(0x8a)][_0x394b67-0x1][_0x58aa9b]){this['grid'][_0x394b67][_0x58aa9b]=this['grid'][_0x394b67-0x1][_0x58aa9b],this['grid'][_0x394b67][_0x58aa9b][_0x180c66(0xb0)](_0x180c66(0x135),_0x394b67);let _0x1a0ef6=_0x58aa9b*this[_0x180c66(0xcc)]+this[_0x180c66(0xcc)]/0x2,_0x58f87b=_0x394b67*(this[_0x180c66(0xcc)]-this['bubbleThreshold'])+this[_0x180c66(0xcc)]/0x2+this[_0x180c66(0x9d)];if(_0x394b67%0x2===0x1)_0x1a0ef6+=this[_0x180c66(0xcc)]/0x2;this[_0x180c66(0x14c)][_0x180c66(0xa1)]({'targets':this[_0x180c66(0x8a)][_0x394b67][_0x58aa9b],'x':_0x1a0ef6,'y':_0x58f87b,'duration':0x1f4,'ease':'Cubic.easeInOut'});}else this['grid'][_0x394b67][_0x58aa9b]=null;}}for(let _0x541dd6=0x0;_0x541dd6<this[_0x180c66(0x183)];_0x541dd6++){if(Phaser[_0x180c66(0x109)][_0x180c66(0xea)](0x0,0x1)>0.3){let _0x1b5628=_0x541dd6*this[_0x180c66(0xcc)]+this[_0x180c66(0xcc)]/0x2,_0x1d650c=-this[_0x180c66(0x104)]+this[_0x180c66(0xcc)]/0x2+this[_0x180c66(0x9d)],_0x5ac72c=Phaser[_0x180c66(0x109)]['Between'](0x0,this['colors']-0x1),_0xceed1d=this['bubbleGroup'][_0x180c66(0x12e)](_0x1b5628,-this[_0x180c66(0xcc)],_0x180c66(0x94),_0x5ac72c);_0xceed1d[_0x180c66(0x133)](this[_0x180c66(0xcc)]/0x2),_0xceed1d[_0x180c66(0xb0)]('gridX',_0x541dd6),_0xceed1d['setData']('gridY',0x0),this[_0x180c66(0x8a)][0x0][_0x541dd6]=_0xceed1d,this[_0x180c66(0x14c)][_0x180c66(0xa1)]({'targets':_0xceed1d,'y':_0x1d650c,'duration':0x1f4,'ease':_0x180c66(0x174)});}else this[_0x180c66(0x8a)][0x0][_0x541dd6]=null;}this[_0x180c66(0xcb)]['delayedCall'](0x258,()=>{const _0x199be7=_0x180c66;this['updateAllBubblePhysicsBodies'](),this[_0x199be7(0xc6)]=![],this[_0x199be7(0xb1)]=!![],this[_0x199be7(0xc1)][_0x199be7(0xc4)](!![]),this[_0x199be7(0x127)](),this[_0x199be7(0xae)](),this[_0x199be7(0x96)]();});}[_0x1e1389(0x15c)](){const _0x44e0d6=_0x1e1389;for(let _0x533437=0x0;_0x533437<this[_0x44e0d6(0xa3)];_0x533437++){for(let _0x5a85c6=0x0;_0x5a85c6<this['gridWidth'];_0x5a85c6++){this[_0x44e0d6(0x8a)][_0x533437][_0x5a85c6]&&this[_0x44e0d6(0x159)](this[_0x44e0d6(0x8a)][_0x533437][_0x5a85c6]);}}}['updateBubblePhysicsBody'](_0x358ad9){const _0x9dedb0=_0x1e1389,_0xe75ea3=_0x358ad9[_0x9dedb0(0x106)](_0x9dedb0(0x8c)),_0x5174dd=_0x358ad9['getData'](_0x9dedb0(0x135)),_0xf37b4a=_0xe75ea3*this['bubbleSize']+this[_0x9dedb0(0xcc)]/0x2+(_0x5174dd%0x2===0x1?this[_0x9dedb0(0xcc)]/0x2:0x0),_0x293edf=_0x5174dd*(this[_0x9dedb0(0xcc)]-this[_0x9dedb0(0x104)])+this[_0x9dedb0(0xcc)]/0x2+this[_0x9dedb0(0x9d)];_0x358ad9[_0x9dedb0(0x160)](_0xf37b4a,_0x293edf),_0x358ad9[_0x9dedb0(0xc2)][_0x9dedb0(0x122)](_0xf37b4a,_0x293edf);}['swapBubbleColors'](){const _0x3d5b9c=_0x1e1389;this[_0x3d5b9c(0x14d)]=GameState[_0x3d5b9c(0x97)];let _0x1e6978=this['nextBubbleColor'];const _0x564711={'x':this[_0x3d5b9c(0x131)]['x'],'y':this[_0x3d5b9c(0x131)]['y']},_0x46b565={'x':this[_0x3d5b9c(0x158)]['x'],'y':this[_0x3d5b9c(0x158)]['y']};this[_0x3d5b9c(0x14c)][_0x3d5b9c(0xa1)]({'targets':this[_0x3d5b9c(0x131)],'x':_0x46b565['x'],'y':_0x46b565['y'],'duration':0xc8,'ease':_0x3d5b9c(0xda)}),this[_0x3d5b9c(0x14c)]['add']({'targets':this['nextNextBubblePreview'],'x':_0x564711['x'],'y':_0x564711['y'],'duration':0xc8,'ease':_0x3d5b9c(0xda)}),this['time'][_0x3d5b9c(0x10e)](0xdc,()=>{const _0x7b3129=_0x3d5b9c;this[_0x7b3129(0x14d)]=GameState['PLAY'],this[_0x7b3129(0xd6)]=this[_0x7b3129(0xca)],this[_0x7b3129(0xca)]=_0x1e6978,this[_0x7b3129(0x131)][_0x7b3129(0x160)](_0x564711['x'],_0x564711['y']),this['nextNextBubblePreview'][_0x7b3129(0x160)](_0x46b565['x'],_0x46b565['y']),this[_0x7b3129(0x12d)]();}),playSound('switch-bubble',this);}[_0x1e1389(0x96)](){const _0x126ac4=_0x1e1389;for(let _0x5e7a19=0x0;_0x5e7a19<this[_0x126ac4(0x183)];_0x5e7a19++){if(this['grid'][this[_0x126ac4(0xa3)]-0x1][_0x5e7a19]){this['gameOver']();return;}}}[_0x1e1389(0x17a)](){const _0x5b3d38=_0x1e1389;if(this[_0x5b3d38(0x14d)]==GameState['GAME_OVER'])return;playSound(_0x5b3d38(0xde),this),this[_0x5b3d38(0x14d)]=GameState[_0x5b3d38(0x169)],this[_0x5b3d38(0x167)]['clear'](!![],!![]);let _0x24fb39=this[_0x5b3d38(0xa1)][_0x5b3d38(0x16a)](0x0,0x0,config[_0x5b3d38(0xaa)],config[_0x5b3d38(0xab)],0x0)[_0x5b3d38(0xd3)](0x0);_0x24fb39['setInteractive'](),_0x24fb39[_0x5b3d38(0xb4)]=0x0,this[_0x5b3d38(0x14c)][_0x5b3d38(0xa1)]({'targets':_0x24fb39,'alpha':0.5,'duration':0xc8});let _0x206e21=this[_0x5b3d38(0xa1)][_0x5b3d38(0x121)](this[_0x5b3d38(0x139)]['config'][_0x5b3d38(0xaa)]/0x2,this[_0x5b3d38(0x139)][_0x5b3d38(0x17f)][_0x5b3d38(0xab)]/0x2,...spriteKey(_0x5b3d38(0xa4))),_0x3effc3=this['add'][_0x5b3d38(0xcf)](_0x206e21['x']+0xa,_0x206e21['y']-0xc8,_0x5b3d38(0xf7),{'fontFamily':_0x5b3d38(0x119),'fontSize':0x26,'align':_0x5b3d38(0x123),'color':_0x5b3d38(0xfb)})['setOrigin'](0.5),_0x10a14c=this[_0x5b3d38(0xa1)]['text'](_0x206e21['x']-0x5a,_0x206e21['y']-0x5a,_0x5b3d38(0xce),{'fontFamily':_0x5b3d38(0x119),'fontSize':0x20,'align':'right','color':'#FFFFFF'})['setOrigin'](0.5),_0xc9fa85=this[_0x5b3d38(0xa1)][_0x5b3d38(0xcf)](_0x206e21['x']+0x5a,_0x206e21['y']-0x5a,this[_0x5b3d38(0x114)],{'fontFamily':_0x5b3d38(0x119),'fontSize':0x20,'align':_0x5b3d38(0x123),'color':_0x5b3d38(0xfb)})[_0x5b3d38(0xd3)](0.5),_0x478ad6=this[_0x5b3d38(0xa1)]['text'](_0x206e21['x']-0x3c,_0x206e21['y'],_0x5b3d38(0x13b),{'fontFamily':_0x5b3d38(0x119),'fontSize':0x20,'align':_0x5b3d38(0x123),'color':_0x5b3d38(0xfb)})['setOrigin'](0.5),_0x123c32=this[_0x5b3d38(0xa1)][_0x5b3d38(0xcf)](_0x206e21['x']+0x5a,_0x206e21['y'],bestscore,{'fontFamily':_0x5b3d38(0x119),'fontSize':0x20,'align':'right','color':_0x5b3d38(0xfb)})['setOrigin'](0.5),_0x56b97f=createButton(_0x206e21['x']-0x64,_0x206e21['y']+0x78,'restart',this),_0x51b40b=createButton(_0x206e21['x']+0x64,_0x206e21['y']+0x78,'exit',this);this['popup']['addMultiple']([_0x24fb39,_0x206e21,_0x10a14c,_0x3effc3,_0xc9fa85,_0x123c32,_0x478ad6,_0x56b97f,_0x51b40b])[_0x5b3d38(0xbb)](0x4);}[_0x1e1389(0x17e)](_0x279e2f){const _0x3ec1c5=_0x1e1389;this[_0x3ec1c5(0x114)]+=_0x279e2f,this[_0x3ec1c5(0x114)]>bestscore&&(bestscore=this[_0x3ec1c5(0x114)],saveData(_0x3ec1c5(0xf5),bestscore)),this[_0x3ec1c5(0xbc)]();}[_0x1e1389(0xbc)](){const _0x4c0fa2=_0x1e1389;this[_0x4c0fa2(0x110)][_0x4c0fa2(0xfa)](bestscore),this['scoreText'][_0x4c0fa2(0xfa)](this[_0x4c0fa2(0x114)]);}['panelPause'](){const _0x5573e6=_0x1e1389;let _0x564c59=this[_0x5573e6(0xa1)]['rectangle'](0x0,0x0,config['width'],config[_0x5573e6(0xab)],0x0)[_0x5573e6(0xd3)](0x0);_0x564c59[_0x5573e6(0x136)](),_0x564c59[_0x5573e6(0xb4)]=0x0;let _0xb951c1=this[_0x5573e6(0xa1)][_0x5573e6(0x121)](this['game'][_0x5573e6(0x17f)][_0x5573e6(0xaa)]/0x2,this[_0x5573e6(0x139)][_0x5573e6(0x17f)][_0x5573e6(0xab)]/0x2,...spriteKey(_0x5573e6(0x11e)))['setDepth'](0x4),_0x1021c2=this[_0x5573e6(0xa1)]['text'](_0xb951c1['x'],_0xb951c1['y']-0xaa,_0x5573e6(0x14b),{'fontFamily':_0x5573e6(0x119),'fontSize':0x30,'align':_0x5573e6(0x17d),'color':_0x5573e6(0xfb)})['setOrigin'](0.5),_0x5a472c=createButton(_0xb951c1['x'],_0xb951c1['y']-0x32,_0x5573e6(0x9f),this),_0x4f761f=createButton(_0xb951c1['x']-0x96,_0xb951c1['y']+0x64,_0x5573e6(0x12a),this);setSoundButton(_0x4f761f);let _0x5af2ba=createButton(_0xb951c1['x'],_0xb951c1['y']+0x64,_0x5573e6(0x143),this),_0x27db4e=createButton(_0xb951c1['x']+0x96,_0xb951c1['y']+0x64,_0x5573e6(0x89),this);this[_0x5573e6(0x167)]['addMultiple']([_0x564c59,_0xb951c1,_0x1021c2,_0x5a472c,_0x4f761f,_0x5af2ba,_0x27db4e])[_0x5573e6(0xbb)](0x4)[_0x5573e6(0xc4)](![]);}[_0x1e1389(0x9c)](){const _0x2d84d7=_0x1e1389;this['state']=GameState[_0x2d84d7(0x14b)],this[_0x2d84d7(0xef)]['pauseAll'](),this['physics'][_0x2d84d7(0xdd)](),this[_0x2d84d7(0x167)][_0x2d84d7(0xc4)](!![]);let _0x123762=this['popup'][_0x2d84d7(0xa0)]()[0x0];_0x123762['alpha']=0x0,this[_0x2d84d7(0x14c)]['add']({'targets':_0x123762,'alpha':0.5,'duration':0xc8});}}const config={'type':Phaser[_0x1e1389(0x186)],'width':0x2d0,'height':0x438,'scale':{'mode':Phaser['Scale'][_0x1e1389(0xc0)],'parent':_0x1e1389(0xe5),'autoCenter':Phaser[_0x1e1389(0x141)][_0x1e1389(0xd1)]},'physics':{'default':_0x1e1389(0x14f),'arcade':{'gravity':{'y':0x0},'debug':![]}},'scene':[Boot,Load,Home,Game]},game=new Phaser['Game'](config);
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка