-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.ob.js
1 lines (1 loc) · 35.6 KB
/
index.ob.js
1
const _0x29977c=_0x19b5;(function(_0x2878b3,_0xf3e307){const _0x79bc20=_0x19b5,_0x1efce5=_0x2878b3();while(!![]){try{const _0x470447=-parseInt(_0x79bc20(0x1cf))/0x1+-parseInt(_0x79bc20(0x1ba))/0x2+-parseInt(_0x79bc20(0x17f))/0x3*(-parseInt(_0x79bc20(0x18b))/0x4)+parseInt(_0x79bc20(0x182))/0x5+-parseInt(_0x79bc20(0x1c3))/0x6*(parseInt(_0x79bc20(0x16a))/0x7)+parseInt(_0x79bc20(0x1c5))/0x8+parseInt(_0x79bc20(0x185))/0x9;if(_0x470447===_0xf3e307)break;else _0x1efce5['push'](_0x1efce5['shift']());}catch(_0x2b16e3){_0x1efce5['push'](_0x1efce5['shift']());}}}(_0x4443,0x59731));let count=0x0,count_star=0x0,pause=![],gameOver=![],start=!![],settings=![],sprPlayer,freeze,playerBulletSpeed=0xa,playerGrp,enemiesGrp,heartGrp,backgroundGrp,bulletGrp,powerupGrp,meteoriteGrp,mobileMode=![],score=0x0,gameOvertxt='',debug=![],time=0x0,timesec=0x0,wave=0x0,etoileIMG,canShoot=!![],tripleDoses=0x0,permitedShoot=0x0,framert;var phase1,phase2,phase3,phase4,phase5,phase6,tiny_ship,tiny_ship_img,player_shoot,bullet_explosion,player_death,enemy_death,hit_damage,bounce_sound,game_music,menu_click,restartBtn,startBtn,settingsBtn,goBack,validateSettings,sprAsteroide,doom_slayer,temp_value,effectsVolume,effectSoundTest,backToGame;function _0x19b5(_0x56bbd5,_0x30c635){const _0x444363=_0x4443();return _0x19b5=function(_0x19b557,_0xfdcbbb){_0x19b557=_0x19b557-0x168;let _0x43edcd=_0x444363[_0x19b557];return _0x43edcd;},_0x19b5(_0x56bbd5,_0x30c635);}let gui,gamegui,joystick,s1,s2;var hearts=[];let musicVolume;function outOfScreen(_0x11d47f){const _0xd09907=_0x19b5;_0x11d47f[_0xd09907(0x1d0)]['x']<0x0&&(_0x11d47f[_0xd09907(0x1d0)]['x']=0x500),_0x11d47f[_0xd09907(0x1d0)]['x']>0x500&&(_0x11d47f[_0xd09907(0x1d0)]['x']=0x0),_0x11d47f[_0xd09907(0x1d0)]['y']<0x0&&(_0x11d47f['position']['y']=0x258),_0x11d47f[_0xd09907(0x1d0)]['y']>0x258&&(_0x11d47f[_0xd09907(0x1d0)]['y']=0x0);}function enemyOutOfScreen(_0x406c68){const _0xf0e264=_0x19b5;if(_0x406c68['position']['x']<0x0||_0x406c68[_0xf0e264(0x1d0)]['x']>0x500||_0x406c68[_0xf0e264(0x1d0)]['y']<0x0||_0x406c68[_0xf0e264(0x1d0)]['y']>0x258)return!![];return![];}function meteoriteOutOfScreen(_0x297c7f){if(_0x297c7f['position']['y']>0x2bc)return!![];return![];}function createEnemy(_0x39dccd,_0x5e6e61,_0x1e4d85=0x40,_0x1c9915=0x40,_0x1cdedb=0x64,_0x274296=0x1){const _0x12af17=_0x19b5;let _0x11e6d1=createSprite(_0x39dccd,_0x5e6e61,_0x1e4d85,_0x1c9915);_0x11e6d1['collide'](allSprites),_0x11e6d1['id']=_0x274296,_0x11e6d1[_0x12af17(0x18c)]=0.1,_0x11e6d1[_0x12af17(0x1a6)]=1.2,_0x11e6d1[_0x12af17(0x199)]=0xa,_0x11e6d1['depth']=0x64,_0x11e6d1['hp']=_0x1cdedb*(Math[_0x12af17(0x1d2)](wave/0x14)+0x1),_0x11e6d1['status']=![];if(_0x274296===0x3)_0x11e6d1[_0x12af17(0x1a9)](loadImage(_0x12af17(0x194))),_0x11e6d1[_0x12af17(0x199)]=0x3,_0x11e6d1[_0x12af17(0x1c6)]=function(_0x1f8dcb){const _0x5520ed=_0x12af17;_0x11e6d1[_0x5520ed(0x1bb)](-0xc),_0x1f8dcb['activeControl']=0x5a,_0x1f8dcb[_0x5520ed(0x1bb)](-0xc),!bounce_sound[_0x5520ed(0x1db)]()&&bounce_sound['play']();},_0x11e6d1[_0x12af17(0x16e)]=function(){const _0x1105bc=_0x12af17;for(let _0x5bac4f=0x0;_0x5bac4f<0x8;_0x5bac4f++){createBullet(_0x11e6d1['position']['x'],_0x11e6d1[_0x1105bc(0x1d0)]['y'],loadImage(_0x1105bc(0x1ae)),function(){const _0x416f0f=_0x1105bc;bulletGrp[_0x416f0f(0x18d)](this),this[_0x416f0f(0x1a9)](loadImage(_0x416f0f(0x1ab))),this[_0x416f0f(0x1bb)](0x0,_0x11e6d1[_0x416f0f(0x1b3)]-0x5a),this[_0x416f0f(0x1a6)]=0x2;let _0x3dc94f=this;window[_0x416f0f(0x1c9)](function(){const _0x117db7=_0x416f0f;_0x3dc94f[_0x117db7(0x16c)]();},0x32);},![],0x3,0x2d*_0x5bac4f,0x96);}};else{if(_0x274296===0x2)_0x11e6d1[_0x12af17(0x1a9)](loadImage(_0x12af17(0x1b0))),_0x11e6d1[_0x12af17(0x1c6)]=function(_0x4f20c6){const _0x49f9a7=_0x12af17;this['rm'](_0x1cdedb),_0x4f20c6['rm'](0x14*(Math[_0x49f9a7(0x1d2)](wave/0x14)+0x1));},_0x11e6d1[_0x12af17(0x16e)]=function(){const _0x38b5bb=_0x12af17;let _0x55a3fb=0x2d;for(let _0x166e3c=0x0;_0x166e3c<0x3;_0x166e3c++){createBullet(_0x11e6d1['position']['x'],_0x11e6d1[_0x38b5bb(0x1d0)]['y'],loadImage(_0x38b5bb(0x1ae)),function(){const _0x7ecc5b=_0x38b5bb;bulletGrp[_0x7ecc5b(0x18d)](this),this[_0x7ecc5b(0x1a9)](loadImage(_0x7ecc5b(0x1ab))),this[_0x7ecc5b(0x1bb)](0x0,_0x11e6d1[_0x7ecc5b(0x1b3)]-0x5a),this[_0x7ecc5b(0x1a6)]=0x2;let _0x5302cb=this;window[_0x7ecc5b(0x1c9)](function(){const _0x527462=_0x7ecc5b;_0x5302cb[_0x527462(0x16c)]();},0x32);},![],0x3,_0x55a3fb,0x96),_0x55a3fb+=0x2d;}};else{if(_0x274296===0x1)_0x11e6d1['addAnimation'](_0x12af17(0x1c8),tiny_ship),_0x11e6d1[_0x12af17(0x196)](_0x12af17(0x1c8)),_0x11e6d1[_0x12af17(0x1a6)]=0.8,_0x11e6d1[_0x12af17(0x1c6)]=function(_0x3fb2c4){const _0x10d49d=_0x12af17;this['rm'](_0x1cdedb),_0x3fb2c4['rm'](0xa*(Math[_0x10d49d(0x1d2)](wave/0x14)+0x1));},_0x11e6d1[_0x12af17(0x16e)]=function(){const _0x1a6655=_0x12af17;createBullet(_0x11e6d1['position']['x'],_0x11e6d1[_0x1a6655(0x1d0)]['y'],loadImage('./img/fireball_drake.png'),function(){const _0x2e4c93=_0x1a6655;bulletGrp[_0x2e4c93(0x18d)](this),this['addImage'](loadImage(_0x2e4c93(0x1ab))),this['setSpeed'](0x0,_0x11e6d1[_0x2e4c93(0x1b3)]-0x5a),this['scale']=0x2;let _0x5c0b87=this;window[_0x2e4c93(0x1c9)](function(){const _0x202a84=_0x2e4c93;_0x5c0b87[_0x202a84(0x16c)]();},0x32);},![],0x3,_0x11e6d1[_0x1a6655(0x1b3)]+0x5a,0x96,0xa);};else{if(_0x274296===0x5)_0x11e6d1[_0x12af17(0x1a9)](loadImage('./img/dent.png')),_0x11e6d1[_0x12af17(0x1a6)]=0x2,_0x11e6d1[_0x12af17(0x199)]=0x14,_0x11e6d1[_0x12af17(0x1c6)]=function(_0x2a6299){const _0x5e229c=_0x12af17;this['rm'](_0x1cdedb*0x3e8),gameOvertxt='j\x27ai\x20une\x20dent\x20contre\x20toi\x20je\x20crois\x20XD',_0x2a6299[_0x5e229c(0x18f)]=-0x1,_0x2a6299['rm'](_0x1cdedb);};else _0x274296===0x4&&(_0x11e6d1['collide'](allSprites),_0x11e6d1['addImage']('1',loadImage(_0x12af17(0x1b2))),_0x11e6d1['addImage']('2',loadImage(_0x12af17(0x1f1))),_0x11e6d1[_0x12af17(0x1a9)]('3',loadImage('./img/boss3.png')),_0x11e6d1[_0x12af17(0x1a9)]('4',loadImage('./img/boss4.png')),_0x11e6d1[_0x12af17(0x1a6)]=0x2,_0x11e6d1['maxSpeed']=0x5,_0x11e6d1[_0x12af17(0x1c6)]=function(_0x11d96d){const _0x477c47=_0x12af17;_0x11d96d[_0x477c47(0x18a)]=0x5a,_0x11e6d1[_0x477c47(0x1bb)](-0xc,_0x11e6d1['rotation']+0x5a),_0x11d96d[_0x477c47(0x1bb)](-0xc),!bounce_sound['isPlaying']()&&bounce_sound[_0x477c47(0x17b)](),_0x11d96d['rm'](0xa*(Math[_0x477c47(0x1d2)](wave/0x14)+0x1));},_0x11e6d1['phase']=0x1,_0x11e6d1[_0x12af17(0x16e)]=function(){const _0x29a17b=_0x12af17;createBullet(_0x11e6d1[_0x29a17b(0x1d0)]['x'],_0x11e6d1['position']['y'],loadImage(_0x29a17b(0x1b7)),function(){const _0x4efb7d=_0x29a17b;bulletGrp[_0x4efb7d(0x18d)](this),this['addImage'](loadImage(_0x4efb7d(0x1ab))),this[_0x4efb7d(0x1bb)](0x0,_0x11e6d1[_0x4efb7d(0x1b3)]-0x5a),this[_0x4efb7d(0x1a6)]=0x2;let _0x5e9a4c=this;window[_0x4efb7d(0x1c9)](function(){const _0x537c87=_0x4efb7d;_0x5e9a4c[_0x537c87(0x16c)]();},0x32);},![],0x5,_0x11e6d1[_0x29a17b(0x1b3)]+0x5a,0x12c,0x32);});}}};_0x274296==0x4?_0x11e6d1['rm']=function(_0x30ce63){const _0x81e445=_0x12af17;this['hp']-=_0x30ce63;if(this['hp']<=0x0)enemy_death[_0x81e445(0x17b)](),this['remove'](),score+=0x3e8,createpowerup(this[_0x81e445(0x1d0)]['x'],this[_0x81e445(0x1d0)]['y'],0x20,0x20,0x1,coeur,0x5a,loadImage('img/Coeur1.png'));else{if(this['hp']<=0x1f4*(Math[_0x81e445(0x1d2)](wave/0x14)+0x1)&&this[_0x81e445(0x1a8)]<0x4)this[_0x81e445(0x1d6)]('4'),this[_0x81e445(0x1a8)]++;else{if(this['hp']<=0x3e8*(Math[_0x81e445(0x1d2)](wave/0x14)+0x1)&&this[_0x81e445(0x1a8)]<0x3)this['changeImage']('3'),this[_0x81e445(0x1a8)]++;else this['hp']<=0x5dc*(Math[_0x81e445(0x1d2)](wave/0x14)+0x1)&&this[_0x81e445(0x1a8)]<0x2&&(this[_0x81e445(0x1d6)]('2'),this[_0x81e445(0x1a8)]++);}}}:_0x11e6d1['rm']=function(_0xcab9ef){const _0x32e368=_0x12af17;this['hp']-=_0xcab9ef;if(this['hp']<=0x0){enemy_death[_0x32e368(0x17b)](),this[_0x32e368(0x18d)](),score+=0xa*_0x274296;let _0x4256ec=Math[_0x32e368(0x1d2)](Math[_0x32e368(0x181)]()*0x64);if(_0x4256ec<=0x4)createpowerup(this[_0x32e368(0x1d0)]['x'],this['position']['y'],0x20,0x20,0.5,coeur,0x5a,loadImage(_0x32e368(0x1cd)));else{if(_0x4256ec>=0x5&&_0x4256ec<=0x7)createpowerup(this[_0x32e368(0x1d0)]['x'],this[_0x32e368(0x1d0)]['y'],0x20,0x20,0x2,()=>{coeurMaudit();},0x5a,loadImage('img/Coeur6.png'));else{if(_0x4256ec>=0x8&&_0x4256ec<=0xc)createpowerup(this['position']['x'],this[_0x32e368(0x1d0)]['y'],0x40,0x40,0.5,tripleShoot,0x5a,loadImage('img/iconetriple.png'));else{if(_0x4256ec>=0xd&&_0x4256ec<=0xf)createpowerup(this['position']['x'],this[_0x32e368(0x1d0)]['y'],0x40,0x40,0.5,noShoot,0x5a,loadImage('img/noshoot.png'));else _0x4256ec>=0x10&&_0x4256ec<=0x14&&createpowerup(this[_0x32e368(0x1d0)]['x'],this[_0x32e368(0x1d0)]['y'],0x40,0x40,0.5,Whey,0x5a,loadImage('img/Whey.png'));}}}}},_0x11e6d1['addToGroup'](enemiesGrp);}function updateEnemy(){const _0x5661e3=_0x19b5;for(let _0x52ff6f of enemiesGrp){if(_0x52ff6f['id']===0x3)_0x52ff6f[_0x5661e3(0x19e)]?(_0x52ff6f[_0x5661e3(0x1d7)](Math['floor'](Math[_0x5661e3(0x181)]()*0x3),Math[_0x5661e3(0x1d2)](Math['random']()*0x169)),count%0xb4===0x0&&canShoot&&_0x52ff6f[_0x5661e3(0x16e)]()):_0x52ff6f[_0x5661e3(0x1d7)](0.5,0x5a);else{if(_0x52ff6f['id']===0x2)_0x52ff6f['status']?(_0x52ff6f[_0x5661e3(0x1d7)](Math[_0x5661e3(0x1d2)](Math[_0x5661e3(0x181)]()*0x3),Math[_0x5661e3(0x1d2)](Math[_0x5661e3(0x181)]()*0x169)),count%0xb4===0x0&&canShoot&&_0x52ff6f[_0x5661e3(0x16e)]()):_0x52ff6f[_0x5661e3(0x1d7)](0.5,0x5a);else{if(_0x52ff6f['id']===0x1)_0x52ff6f[_0x5661e3(0x19e)]?(_0x52ff6f[_0x5661e3(0x1b3)]=degrees(Math[_0x5661e3(0x1e5)](sprPlayer[_0x5661e3(0x1d0)]['y']-_0x52ff6f[_0x5661e3(0x1d0)]['y'],sprPlayer['position']['x']-_0x52ff6f['position']['x']))-0x5a,_0x52ff6f[_0x5661e3(0x1bb)](Math['floor'](Math[_0x5661e3(0x181)]()*0x3),_0x52ff6f[_0x5661e3(0x1b3)]+0x5a),count%0x78===0x0&&canShoot&&_0x52ff6f[_0x5661e3(0x16e)]()):_0x52ff6f[_0x5661e3(0x1bb)](0x1,0x5a);else{if(_0x52ff6f['id']===0x5)_0x52ff6f[_0x5661e3(0x19e)]?(_0x52ff6f['rotation']=degrees(Math[_0x5661e3(0x1e5)](sprPlayer[_0x5661e3(0x1d0)]['y']-_0x52ff6f[_0x5661e3(0x1d0)]['y'],sprPlayer[_0x5661e3(0x1d0)]['x']-_0x52ff6f[_0x5661e3(0x1d0)]['x']))-0x5a,_0x52ff6f[_0x5661e3(0x1bb)](0xa,_0x52ff6f['rotation']+0x5a)):_0x52ff6f[_0x5661e3(0x1bb)](0x14,0x5a);else{if(_0x52ff6f['id']===0x4){if(_0x52ff6f['status']){let _0xbdd14f=0x5a;_0x52ff6f['rotation']=degrees(Math[_0x5661e3(0x1e5)](sprPlayer['position']['y']-_0x52ff6f[_0x5661e3(0x1d0)]['y'],sprPlayer[_0x5661e3(0x1d0)]['x']-_0x52ff6f[_0x5661e3(0x1d0)]['x']))-0x5a,_0x52ff6f[_0x5661e3(0x1d7)](Math[_0x5661e3(0x1d2)](Math[_0x5661e3(0x181)]()*0x5),_0x52ff6f[_0x5661e3(0x1b3)]+0x5a+_0xbdd14f),count%0x3c===0x0&&canShoot&&(_0x52ff6f[_0x5661e3(0x16e)](),_0xbdd14f+=0x1);}else _0x52ff6f[_0x5661e3(0x1bb)](0x1,0x5a);}}}}}_0x52ff6f[_0x5661e3(0x19e)]?outOfScreen(_0x52ff6f):_0x52ff6f[_0x5661e3(0x19e)]=!enemyOutOfScreen(_0x52ff6f);};if(enemiesGrp[_0x5661e3(0x179)]===0x0){wave++;if(wave%0x14===0x0)createAllEnemy(0x1,0x4);else{if(wave%0x14===0xa){let _0x49ab43=Math[_0x5661e3(0x1d2)](Math['random']()*0x6)+0x4;createAllEnemy(_0x49ab43,0x3);}else{if(wave%0x14===0x5||wave%0x14===0xf){let _0x93092d=Math[_0x5661e3(0x1d2)](Math[_0x5661e3(0x181)]()*0x6)+0x4;createAllEnemy(_0x93092d,0x2);}else{let _0x14b7e3=Math[_0x5661e3(0x1d2)](Math[_0x5661e3(0x181)]()*0x5)+0x2;createAllEnemy(_0x14b7e3,0x1),_0x14b7e3=Math[_0x5661e3(0x1d2)](Math['random']()*0x3)+0x1,createAllEnemy(_0x14b7e3,0x2),_0x14b7e3=Math[_0x5661e3(0x1d2)](Math['random']()*0x2),createAllEnemy(_0x14b7e3,0x3);}}};}}function createAllEnemy(_0x375be3,_0x17737e){const _0xe344d9=_0x19b5;let _0x1deec5=[];for(let _0x31ae07=0x0;_0x31ae07<_0x375be3;_0x31ae07++){let _0x5b33ad=Math['floor'](Math[_0xe344d9(0x181)]()*0x4d4);while(_0x5b33ad in _0x1deec5){_0x5b33ad=Math[_0xe344d9(0x1d2)](Math[_0xe344d9(0x181)]()*0x4d4);}_0x17737e===0x4?createEnemy(_0x5b33ad,Math['floor'](Math['random']()*-0x3e8),0x2d,0x3d,0x7d0,_0x17737e):createEnemy(_0x5b33ad,Math[_0xe344d9(0x1d2)](Math[_0xe344d9(0x181)]()*-0x3e8),0x40,0x40,0x64,_0x17737e);;}}function createPlayer(_0x14a5c0,_0x1ef7f6,_0x474ac0,_0x455e96){const _0x4d2036=_0x19b5;sprPlayer=createSprite(_0x14a5c0,_0x1ef7f6,_0x474ac0,_0x455e96),sprPlayer[_0x4d2036(0x18c)]=0.015,sprPlayer[_0x4d2036(0x1a9)](phase1),sprPlayer[_0x4d2036(0x1a9)](phase2),sprPlayer[_0x4d2036(0x1a9)](phase3),sprPlayer['addImage'](phase4),sprPlayer['addImage'](phase5),sprPlayer[_0x4d2036(0x1a9)](phase6),sprPlayer['scale']=0.8,sprPlayer[_0x4d2036(0x199)]=0x7,sprPlayer[_0x4d2036(0x197)]=0x3e8,sprPlayer['hp']=0x64,sprPlayer['lifes']=0x3,sprPlayer['activeControl']=0x0,sprPlayer[_0x4d2036(0x16f)]=-0x46,sprPlayer['collide'](allSprites),sprPlayer['rm']=function(_0x16d0a7=0x0){const _0x365f48=_0x4d2036;hit_damage[_0x365f48(0x17b)](),this['inv']+0x1e<=count&&(this['hp']>0x0&&(this['hp']-=_0x16d0a7,this[_0x365f48(0x16f)]=count),this[_0x365f48(0x18f)]>0x0&&this['hp']<=0x0&&(this[_0x365f48(0x18f)]--,this['hp']=0x64,this['inv']=count)),this[_0x365f48(0x18f)]<=0x0&&(powerupGrp[_0x365f48(0x1e1)](),playerGrp[_0x365f48(0x1e1)](),enemiesGrp['removeSprites'](),bulletGrp[_0x365f48(0x1e1)](),player_death[_0x365f48(0x17b)](),gameOver=!![],pause=!![]);},playerGrp=Group(),sprPlayer[_0x4d2036(0x189)](playerGrp);}function _0x4443(){const _0x269116=['play','location','isChanged','./img/phase1.png','213cgCrlg','./sounds/player_death.wav','random','1839180mbkKRR','img/Tacos.png','#ffcc00','6983433wWOffx','mae','./img/phase3.png','./sounds/game_music_space.mp3','addToGroup','activeControl','1844BQgvsq','friction','remove','toLocaleLowerCase','lifes','PAUSE','color','lag','push','./img/poulpe.png','reload','changeAnimation','depth','rot','maxSpeed','Score\x20:\x20','./sounds/hit_damage.wav','img/Coeur6.png','target','status','./img/phase5.png','img/noshoot.png','MUSIC\x20VOLUME','oncollide','START','img/mars.png','gameCanvasContainer','scale','textColor','phase','addImage','./sounds/player_shoot.wav','./img/explosionbullet.png','is\x20not\x20number\x20!!!','img/Whey.png','./img/fireball_drake.png','MAIN\x20MENU','./img/sprite_dragon.png','./img/phase2.png','./img/boss1.png','rotation','Wave:\x20','doomslayer','stop','./img/balleboss.png','onPress','fps\x20:\x20','404888TIxFmW','setSpeed','./img/etoiles.png','ceil','./img/projectiles.png','img/terre.png','Tacos,\x20Tacos,\x20Tacos','Tu\x20as\x20ete\x20maudit,\x20LOSER\x20!!!','val','1129488PfmMTR','wave','121864WiyKcT','col','text','tiny-ship','setTimeout','./img/asteroide.png','collide','piou','img/Coeur1.png','textScaled','434660BbYhpq','position','./sounds/bounce.wav','floor','noshoot','./img/tiny-ship.png','cornerRadius','changeImage','addSpeed','locate','pts','toArray','isPlaying','speed','whey','time','#000000','\x20:\x20','removeSprites','EFFECTS\x20VOLUME','Time\x20:\x20','tacos','atan2','toString','Wave\x20:\x20','mynameisoctopus','./img/Coeur','invalide\x20command\x20!!!','./sounds/menuSelect.wav','setVolume','CONTINUE','dmg','preload','resize','./img/boss2.png','Slider','SETTINGS','7MYgXhW','maudit','timout','forEach','shoot','inv','Score:\x20','img/Douche.png','currentSpeed','nb\x20?\x20','draw','timelife','command:','stroke','overlap','length','./sounds/bullet_explosion.wav'];_0x4443=function(){return _0x269116;};return _0x4443();}let shoot=0x0;function playerUpdate(){const _0x49033b=_0x19b5;if(tripleDoses>0x0)tripleDoses--;if(permitedShoot>0x0)permitedShoot--;sprPlayer[_0x49033b(0x18a)]>0x0&&sprPlayer['activeControl']--,playerGrp[_0x49033b(0x178)](enemiesGrp,function(_0x55636f,_0x362eff){_0x362eff['col'](_0x55636f);}),shoot>0x0&&shoot--,(keyIsDown(LEFT_ARROW)==!![]||keyIsDown(0x51)==!![])&&(sprPlayer[_0x49033b(0x1b3)]-=0x6),(keyIsDown(RIGHT_ARROW)==!![]||keyIsDown(0x44)==!![])&&(sprPlayer['rotation']+=0x6),keyIsDown(0x41)==!![]&&sprPlayer[_0x49033b(0x18a)]==0x0&&sprPlayer['addSpeed'](0.4,sprPlayer[_0x49033b(0x1b3)]-0xb4),keyIsDown(0x45)==!![]&&sprPlayer['activeControl']==0x0&&sprPlayer[_0x49033b(0x1d7)](0.4,sprPlayer[_0x49033b(0x1b3)]),(keyIsDown(UP_ARROW)==!![]||keyIsDown(0x5a)==!![])&&sprPlayer[_0x49033b(0x18a)]==0x0&&sprPlayer[_0x49033b(0x1d7)](0.4,sprPlayer[_0x49033b(0x1b3)]-0x5a),(keyIsDown(DOWN_ARROW)==!![]||keyIsDown(0x53)==!![])&&sprPlayer[_0x49033b(0x18a)]==0x0&&sprPlayer[_0x49033b(0x1d7)](0.4,sprPlayer[_0x49033b(0x1b3)]+0x5a),keyIsDown(0x20)==!![]&&shoot==0x0&&permitedShoot<=0x0&&(shoot=0xa,tripleDoses>0x0&&(createBullet(sprPlayer[_0x49033b(0x1d0)]['x']-0x5,sprPlayer[_0x49033b(0x1d0)]['y'],loadImage(_0x49033b(0x1be)),function(){const _0x8a6146=_0x49033b;bulletGrp[_0x8a6146(0x18d)](this),this[_0x8a6146(0x1a9)](loadImage(_0x8a6146(0x1ab))),this[_0x8a6146(0x1bb)](0x0,sprPlayer[_0x8a6146(0x1b3)]-0x5a),this[_0x8a6146(0x1a6)]=0x2,this[_0x8a6146(0x1dc)]=0x1;let _0x5ef4d8=this;window[_0x8a6146(0x1c9)](function(){const _0xd95265=_0x8a6146;_0x5ef4d8[_0xd95265(0x16c)]();},0x32);},!![],playerBulletSpeed,sprPlayer['rotation']-0x87),createBullet(sprPlayer[_0x49033b(0x1d0)]['x']+0x5,sprPlayer[_0x49033b(0x1d0)]['y'],loadImage('./img/projectiles.png'),function(){const _0x2a0049=_0x49033b;bulletGrp[_0x2a0049(0x18d)](this),this['addImage'](loadImage('./img/explosionbullet.png')),this[_0x2a0049(0x1bb)](0x0,sprPlayer['rotation']-0x5a),this[_0x2a0049(0x1a6)]=0x2,this[_0x2a0049(0x1dc)]=0x1;let _0x5e613b=this;window['setTimeout'](function(){const _0x13806b=_0x2a0049;_0x5e613b[_0x13806b(0x16c)]();},0x32);},!![],playerBulletSpeed,sprPlayer[_0x49033b(0x1b3)]-0x2d)),createBullet(sprPlayer[_0x49033b(0x1d0)]['x'],sprPlayer[_0x49033b(0x1d0)]['y'],loadImage(_0x49033b(0x1be)),function(){const _0x3a5f0=_0x49033b;bulletGrp[_0x3a5f0(0x18d)](this),this['addImage'](loadImage(_0x3a5f0(0x1ab))),this['setSpeed'](0x0,sprPlayer[_0x3a5f0(0x1b3)]-0x5a),this[_0x3a5f0(0x1a6)]=0x2,this['speed']=0x1;let _0x583bdd=this;bullet_explosion[_0x3a5f0(0x17b)](),window['setTimeout'](function(){const _0x321a77=_0x3a5f0;_0x583bdd[_0x321a77(0x16c)]();},0x32);},!![],playerBulletSpeed),player_shoot[_0x49033b(0x17b)]()),outOfScreen(sprPlayer);}function bulletUpdate(){const _0x33e67c=_0x19b5;bulletGrp[_0x33e67c(0x1da)]()[_0x33e67c(0x16d)](_0x3448a7=>{const _0x560723=_0x33e67c;_0x3448a7['target']?(outOfScreen(_0x3448a7),enemiesGrp[_0x560723(0x1da)]()['forEach'](_0x2cbac8=>{const _0x1019a8=_0x560723;_0x3448a7[_0x1019a8(0x1cb)](_0x2cbac8,function(){const _0x53567f=_0x1019a8;_0x3448a7['rm'](),_0x2cbac8['rm'](_0x3448a7[_0x53567f(0x1ee)]);});}),_0x3448a7[_0x560723(0x1de)]+_0x3448a7[_0x560723(0x175)]<=count&&_0x3448a7['rm']()):(sprPlayer['collide'](_0x3448a7,function(){const _0x46ac92=_0x560723;_0x3448a7['rm'](),sprPlayer['rm'](_0x3448a7[_0x46ac92(0x1ee)]);}),_0x3448a7[_0x560723(0x1de)]+_0x3448a7[_0x560723(0x175)]<=count&&_0x3448a7['rm']());});}function createBullet(_0x200e20,_0x3d145f,_0x5411b7,_0x7701aa,_0x2b244b=!![],_0x539c13=0xa,_0x34e318=sprPlayer[_0x29977c(0x1b3)]-0x5a,_0x53e53d=0x50,_0x4e5711=0x14){const _0x3296a8=_0x29977c;let _0x23926d=createSprite(_0x200e20,_0x3d145f,0x1,0x1);_0x23926d[_0x3296a8(0x1ee)]=_0x4e5711,_0x23926d['addImage'](_0x5411b7),_0x23926d['rot']=_0x34e318,_0x23926d[_0x3296a8(0x172)]=_0x539c13,_0x23926d[_0x3296a8(0x1bb)](_0x23926d[_0x3296a8(0x172)],_0x23926d['rot']),_0x23926d[_0x3296a8(0x16c)]=function(){this['remove']();},_0x23926d[_0x3296a8(0x19d)]=_0x2b244b,_0x23926d['rm']=_0x7701aa,_0x23926d[_0x3296a8(0x1de)]=count,_0x23926d[_0x3296a8(0x175)]=_0x53e53d,_0x23926d[_0x3296a8(0x189)](bulletGrp);}function Shower(){const _0x5ae521=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),score+=0xf4240,gameOvertxt='Il\x20est\x20temps\x20d\x27aller\x20prendre\x20une\x20douche',sprPlayer[_0x5ae521(0x18f)]=-0x1,sprPlayer['rm'](0x64);}function coeur(){const _0x31fb45=_0x29977c;sprPlayer[_0x31fb45(0x18f)]===0x3?sprPlayer['hp']===0x64?score+=0x64:sprPlayer['hp']=0x64:sprPlayer[_0x31fb45(0x18f)]+=0x1;}function coeurMaudit(){const _0x512be2=_0x29977c;sprPlayer[_0x512be2(0x18f)]>0x1?sprPlayer[_0x512be2(0x18f)]-=0x1:(sprPlayer['lifes']=-0x1,sprPlayer['rm'](0x64),score=0x0,gameOvertxt=_0x512be2(0x1c1));}function Whey(){const _0x419452=_0x29977c;if(sprPlayer[_0x419452(0x199)]<0xc)sprPlayer[_0x419452(0x199)]+=0x1,playerBulletSpeed+=0x1;else{if(sprPlayer['hp']===0x64)score+=0x32;else sprPlayer['hp']>0x32?sprPlayer['hp']=0x64:sprPlayer['hp']+=0x32;}}function tripleShoot(){tripleDoses=0x258;}function noShoot(){permitedShoot=0x12c;}function Tacos(){const _0x2f81b3=_0x29977c;sprPlayer['hp']=0x1,sprPlayer[_0x2f81b3(0x18f)]=0x1,gameOvertxt=_0x2f81b3(0x1c0);}function createpowerup(_0x3f3382,_0x28eac3,_0x58541a,_0x272303,_0x295d8c,_0x17e2c7,_0x3cc6ec,_0x4e9a55){const _0xa9d91c=_0x29977c;let _0x53df03=createSprite(_0x3f3382,_0x28eac3);_0x53df03[_0xa9d91c(0x1bb)](_0x295d8c,_0x3cc6ec),_0x53df03[_0xa9d91c(0x1a9)](_0x4e9a55),_0x53df03[_0xa9d91c(0x1a2)]=_0x17e2c7,_0x53df03['rm']=function(){const _0x3371fe=_0xa9d91c;this[_0x3371fe(0x1a2)](),this[_0x3371fe(0x18d)]();},_0x53df03[_0xa9d91c(0x189)](powerupGrp);}function updatePowerup(){const _0x90355e=_0x29977c;powerupGrp[_0x90355e(0x16d)](_0x486a49=>{const _0x501412=_0x90355e;_0x486a49['collide'](playerGrp,function(){_0x486a49['rm']();}),enemyOutOfScreen(_0x486a49)&&_0x486a49[_0x501412(0x18d)]();});}function generatePowerup(){const _0x3352d6=_0x29977c;if(count%0x3c===0x0){let _0x381369=Math[_0x3352d6(0x1d2)](Math['random']()*0x2710);if(_0x381369===0x1388)createpowerup(Math[_0x3352d6(0x1d2)](Math[_0x3352d6(0x181)]()*0x3e8+0x64),0x0,0x40,0x40,0.5,()=>{Shower();},0x5a,loadImage('img/Douche.png'));else _0x381369>=0x64&&_0x381369<=0x96&&createpowerup(Math[_0x3352d6(0x1d2)](Math['random']()*0x3e8+0x64),0x0,0x40,0x40,0.5,Tacos,0x5a,loadImage('img/Tacos.png'));}}function createHeart(){const _0x479267=_0x29977c;heartGrp=Group();for(let _0xe693cc=0x0;_0xe693cc<0x3;_0xe693cc++){let _0xfb7824=createSprite(0xc8+_0xe693cc*0x30,0x19,0x20,0x20);_0xfb7824[_0x479267(0x1a6)]=1.5,_0xfb7824[_0x479267(0x189)](heartGrp);}}function drawHeart(_0x8d3eed,_0x3abd27){const _0x4dfe59=_0x29977c;if(sprPlayer[_0x4dfe59(0x18f)]-0x1<_0x3abd27)_0x8d3eed[_0x4dfe59(0x1a9)](hearts[0x5]);else{if(sprPlayer[_0x4dfe59(0x18f)]-0x1==_0x3abd27){let _0x49cd34=0x6-Math[_0x4dfe59(0x1bd)](sprPlayer['hp']/0x14)-0x1;_0x8d3eed[_0x4dfe59(0x1a9)](hearts[_0x49cd34[_0x4dfe59(0x1e6)]()]);}else _0x8d3eed[_0x4dfe59(0x1a9)](hearts[0x0]);}}function drawLife(){let _0x360f5d=0x0;for(let _0x158994 of heartGrp){drawHeart(_0x158994,_0x360f5d),_0x360f5d++;}}function drawTime(){const _0x4a590d=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),timesec<0xa?text(_0x4a590d(0x1e3)+time['toString']()+_0x4a590d(0x1e0)+'0'+timesec['toString'](),0x1f4,0x19):text(_0x4a590d(0x1e3)+time[_0x4a590d(0x1e6)]()+_0x4a590d(0x1e0)+timesec[_0x4a590d(0x1e6)](),0x1f4,0x19);}function drawScore(){const _0x1344b8=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text(_0x1344b8(0x170)+score[_0x1344b8(0x1e6)]()+_0x1344b8(0x1d9),0x352,0x19);}function drawWave(){const _0x272375=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text(_0x272375(0x1b4)+wave[_0x272375(0x1e6)](),0x47e,0x19);}function draw_gui(){drawTime(),drawScore(),drawWave(),drawLife();}function cheatCode(){const _0x175547=_0x29977c;if(keyWentDown(0xde)){let _0x28c34f=prompt(_0x175547(0x176)),_0x25d475;if(_0x28c34f!=null)switch(_0x28c34f[_0x175547(0x18e)]()){case _0x175547(0x192):createAllEnemy(0x2710,0x1);break;case _0x175547(0x1e8):createAllEnemy(0xa,0x3);break;case'pepito':createMeteorite();break;case'meatball':createMeteorite(loadImage(_0x175547(0x1a4)));break;case _0x175547(0x186):createMeteorite(loadImage(_0x175547(0x1bf)));break;case'life':_0x25d475=prompt(_0x175547(0x173)),_0x25d475=parseInt(_0x25d475);if(isNaN(_0x25d475)){alert(_0x175547(0x1ac));break;}sprPlayer['lifes']=_0x25d475,sprPlayer['hp']=0x64;break;case _0x175547(0x1c4):_0x25d475=prompt('nb\x20?\x20'),_0x25d475=parseInt(_0x25d475);if(isNaN(_0x25d475)){alert(_0x175547(0x1ac));break;}wave=_0x25d475-0x1,enemiesGrp[_0x175547(0x1e1)]();break;case'douche':createpowerup(0xc8,0x0,0x40,0x40,0.5,Shower,0x5a,loadImage(_0x175547(0x171)));break;case _0x175547(0x1b5):game_music['stop'](),game_music=doom_slayer,temp_value=s1[_0x175547(0x1c2)],game_music['setVolume'](temp_value);break;case _0x175547(0x1e4):createpowerup(Math[_0x175547(0x1d2)](Math[_0x175547(0x181)]()*0x3e8+0x64),0x0,0x40,0x40,0.5,Tacos,0x5a,loadImage(_0x175547(0x183)));break;case _0x175547(0x16e):canShoot=!canShoot;break;case'tripledose':createpowerup(Math[_0x175547(0x1d2)](Math[_0x175547(0x181)]()*0x3e8+0x64),0x0,0x40,0x40,0x2,tripleShoot,0x5a,loadImage('img/iconetriple.png'));break;case _0x175547(0x16b):createpowerup(Math['floor'](Math[_0x175547(0x181)]()*0x3e8+0x64),0x0,0x40,0x40,0x2,coeurMaudit,0x5a,loadImage(_0x175547(0x19c)));break;case'bigmama':sprPlayer[_0x175547(0x1a6)]+=0x1;break;case _0x175547(0x1dd):createpowerup(Math[_0x175547(0x1d2)](Math['random']()*0x3e8+0x64),0x0,0x40,0x40,0.5,Whey,0x5a,loadImage(_0x175547(0x1ad)));break;case _0x175547(0x1d3):createpowerup(Math[_0x175547(0x1d2)](Math[_0x175547(0x181)]()*0x3e8+0x64),0x0,0x40,0x40,0x2,noShoot,0x5a,loadImage(_0x175547(0x1a0)));break;default:alert(_0x175547(0x1ea)),createAllEnemy(0x1,0x5);break;}}}function gameUpdate(){count++,cheatCode(),playerUpdate(),start_back(),generateMeteorite(),updateEnemy(),bulletUpdate(),updatePowerup(),generatePowerup();}function preload(){const _0x290cf5=_0x29977c;for(let _0x1c3202=0x1;_0x1c3202<=0x6;_0x1c3202++){hearts[_0x290cf5(0x193)](loadImage(_0x290cf5(0x1e9)+_0x1c3202[_0x290cf5(0x1e6)]()+'.png'));}player_death=loadSound(_0x290cf5(0x180)),enemy_death=loadSound('./sounds/enemy_death.wav'),hit_damage=loadSound(_0x290cf5(0x19b)),player_shoot=loadSound(_0x290cf5(0x1aa)),bullet_explosion=loadSound(_0x290cf5(0x17a)),bounce_sound=loadSound(_0x290cf5(0x1d1)),game_music=loadSound(_0x290cf5(0x188)),menu_click=loadSound(_0x290cf5(0x1eb)),doom_slayer=loadSound('./sounds/Doom.mp3'),menu_click[_0x290cf5(0x1ec)](0.2),game_music[_0x290cf5(0x1ec)](0x1),bounce_sound['setVolume'](0.2),enemy_death['setVolume'](0.2),hit_damage[_0x290cf5(0x1ec)](0.2),player_death[_0x290cf5(0x1ec)](0.2),bullet_explosion[_0x290cf5(0x1ec)](0.2),player_shoot[_0x290cf5(0x1ec)](0.2),tiny_ship_img=loadImage(_0x290cf5(0x1d4)),tiny_ship=loadSpriteSheet(_0x290cf5(0x1d4),0x40,0x40,0x9),phase1=loadImage(_0x290cf5(0x17e)),phase2=loadImage(_0x290cf5(0x1b1)),phase3=loadImage(_0x290cf5(0x187)),phase4=loadImage('./img/phase4.png'),phase5=loadImage(_0x290cf5(0x19f)),phase6=loadImage('./img/phase6.png'),sprAsteroide=loadImage(_0x290cf5(0x1ca));}function setup(){const _0x4cd745=_0x29977c;window['onclose']=game_music[_0x4cd745(0x1b6)](),enemiesGrp=Group(),backgroundGrp=Group(),powerupGrp=Group(),meteoriteGrp=Group(),frameRate(0x3c);let _0x2cc78d=createCanvas(0x500,0x258);_0x2cc78d['parent'](_0x4cd745(0x1a5)),etoileIMG=loadImage(_0x4cd745(0x1bc)),createPlayer(0x1f4,0x12c,0x64,0xc8),framert=frameRate(),bulletGrp=Group(),createHeart(),sprPlayer['addAnimation'](_0x4cd745(0x1cc),phase1,phase2,phase3,phase4,phase5,phase6,phase6,phase5,phase4,phase3,phase2,phase1),sprPlayer[_0x4cd745(0x196)](_0x4cd745(0x1cc)),buttonSetup(),gui=createGui(),gamegui=createGui(),s1=createSlider(_0x4cd745(0x168),0x12c,0xaa,0x2bc,0x32,0x0,0x2),s2=createSlider(_0x4cd745(0x168),0x12c,0x10e,0x2bc,0x32,0x0,0.5);}function buttonSetup(){const _0x5a8551=_0x29977c;restartBtn=new Clickable(),restartBtn[_0x5a8551(0x1d5)]=0x0,restartBtn[_0x5a8551(0x1d8)](0x208,0x1cc),restartBtn[_0x5a8551(0x1ce)]=!![],restartBtn[_0x5a8551(0x1c7)]='RESTART',restartBtn[_0x5a8551(0x1f0)](0xfa,0x64),restartBtn[_0x5a8551(0x191)]='#000000',restartBtn[_0x5a8551(0x1a7)]='#ffcc00',restartBtn[_0x5a8551(0x177)]=_0x5a8551(0x184),restartBtn[_0x5a8551(0x1b8)]=function(){const _0x3ca88f=_0x5a8551;menu_click[_0x3ca88f(0x17b)](),window[_0x3ca88f(0x17c)][_0x3ca88f(0x195)]();},startBtn=new Clickable(),startBtn[_0x5a8551(0x1d5)]=0x0,startBtn[_0x5a8551(0x1d8)](0x208,0x1cc),startBtn[_0x5a8551(0x1ce)]=!![],startBtn['text']=_0x5a8551(0x1a3),startBtn[_0x5a8551(0x1f0)](0xfa,0x64),startBtn['color']='#000000',startBtn['textColor']='#ffcc00',startBtn[_0x5a8551(0x177)]=_0x5a8551(0x184),startBtn[_0x5a8551(0x1b8)]=function(){const _0x4f5915=_0x5a8551;menu_click[_0x4f5915(0x17b)](),start=![],settings=![];},settingsBtn=new Clickable(),settingsBtn[_0x5a8551(0x1d5)]=0x0,settingsBtn[_0x5a8551(0x1d8)](0x208,0x154),settingsBtn[_0x5a8551(0x1ce)]=!![],settingsBtn[_0x5a8551(0x1c7)]=_0x5a8551(0x169),settingsBtn[_0x5a8551(0x1f0)](0xfa,0x64),settingsBtn[_0x5a8551(0x191)]=_0x5a8551(0x1df),settingsBtn[_0x5a8551(0x1a7)]=_0x5a8551(0x184),settingsBtn[_0x5a8551(0x177)]='#ffcc00',settingsBtn['onPress']=function(){const _0x4ca56f=_0x5a8551;menu_click[_0x4ca56f(0x17b)](),start=![],settings=!![];},effectSoundTest=new Clickable(),effectSoundTest[_0x5a8551(0x1d5)]=0x0,effectSoundTest[_0x5a8551(0x1d8)](0x208,0x154),effectSoundTest[_0x5a8551(0x1ce)]=!![],effectSoundTest[_0x5a8551(0x1c7)]='TEST\x20SOUND\x20VOLUME',effectSoundTest[_0x5a8551(0x1f0)](0xfa,0x64),effectSoundTest[_0x5a8551(0x191)]=_0x5a8551(0x1df),effectSoundTest[_0x5a8551(0x1a7)]=_0x5a8551(0x184),effectSoundTest['stroke']='#ffcc00',effectSoundTest[_0x5a8551(0x1b8)]=function(){menu_click['play']();},goBack=new Clickable(),goBack[_0x5a8551(0x1d5)]=0x0,goBack[_0x5a8551(0x1d8)](0x208,0x1cc),goBack[_0x5a8551(0x1ce)]=!![],goBack[_0x5a8551(0x1c7)]=_0x5a8551(0x1af),goBack[_0x5a8551(0x1f0)](0xfa,0x64),goBack['color']=_0x5a8551(0x1df),goBack[_0x5a8551(0x1a7)]=_0x5a8551(0x184),goBack[_0x5a8551(0x177)]=_0x5a8551(0x184),goBack['onPress']=function(){menu_click['play'](),start=!![],settings=![];},backToGame=new Clickable(),backToGame['cornerRadius']=0x0,backToGame[_0x5a8551(0x1d8)](0x208,0x154),backToGame['textScaled']=!![],backToGame[_0x5a8551(0x1c7)]=_0x5a8551(0x1ed),backToGame['resize'](0xfa,0x64),backToGame[_0x5a8551(0x191)]=_0x5a8551(0x1df),backToGame[_0x5a8551(0x1a7)]=_0x5a8551(0x184),backToGame['stroke']=_0x5a8551(0x184),backToGame[_0x5a8551(0x1b8)]=function(){const _0x93b9ac=_0x5a8551;menu_click[_0x93b9ac(0x17b)],pause=![],backgroundGrp['toArray']()['forEach'](_0x21d2d3=>{const _0x50793d=_0x93b9ac;_0x21d2d3[_0x50793d(0x1bb)](_0x21d2d3[_0x50793d(0x172)],0x5a);}),bulletGrp['toArray']()[_0x93b9ac(0x16d)](_0x29467b=>{const _0x27c4f8=_0x93b9ac;_0x29467b[_0x27c4f8(0x1bb)](_0x29467b[_0x27c4f8(0x172)],_0x29467b[_0x27c4f8(0x198)]);}),powerupGrp[_0x93b9ac(0x1da)]()['forEach'](_0x1c024f=>{_0x1c024f['setSpeed'](0x1,0x5a);}),meteoriteGrp['toArray']()[_0x93b9ac(0x16d)](_0x5733ec=>{_0x5733ec['setSpeed'](0x2,0x5a);});};}function startMenuDraw(){const _0x2be36b=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text('Space\x20ship\x20shooting\x20!!!',0x280,0xa0),startBtn[_0x2be36b(0x174)](),settingsBtn[_0x2be36b(0x174)]();}function debug_up(){const _0x359921=_0x29977c;(keyWentDown(0xbb)||keyWentDown(0x3d))&&(debug=!debug),debug&&(count%0x3c==0x0&&(framert=frameRate()),textSize(0xa),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text(_0x359921(0x1b9)+Math['floor'](framert)[_0x359921(0x1e6)](),0x32,0xa));}function settingsMenuDraw(){const _0x4927f7=_0x29977c;s1['draw'](),s2[_0x4927f7(0x174)](),textSize(0x14),textAlign(RIGHT,CENTER),fill(0xff,0xcc,0x0),text(_0x4927f7(0x1a1),0x104,0xc8),textSize(0x14),textAlign(RIGHT,CENTER),fill(0xff,0xcc,0x0),text(_0x4927f7(0x1e2),0x104,0x12c),effectSoundTest[_0x4927f7(0x174)](),(s1[_0x4927f7(0x17d)]||s2['isChanged'])&&(game_music[_0x4927f7(0x1ec)](s1['val']),menu_click[_0x4927f7(0x1ec)](s2['val']),bounce_sound['setVolume'](s2[_0x4927f7(0x1c2)]),enemy_death[_0x4927f7(0x1ec)](s2[_0x4927f7(0x1c2)]),hit_damage['setVolume'](s2[_0x4927f7(0x1c2)]),player_death[_0x4927f7(0x1ec)](s2[_0x4927f7(0x1c2)]),bullet_explosion[_0x4927f7(0x1ec)](s2['val']),player_shoot['setVolume'](s2[_0x4927f7(0x1c2)])),goBack[_0x4927f7(0x174)]();}function draw(){const _0x526c66=_0x29977c;background(0x0);!game_music[_0x526c66(0x1db)]()&&game_music[_0x526c66(0x17b)]();if(start)count++,start_back(),startMenuDraw(),drawSprites(backgroundGrp);else{if(settings)start_back(),settingsMenuDraw();else{if(!pause){if(timesec==0x3c)time+=0x1,timesec=0x0;else count%0x3c==0x0&&count!=0x0&&(timesec+=0x1);}keyWentDown(ENTER)&&gameOver==![]&&(pause=!pause,pause?(enemiesGrp['toArray']()[_0x526c66(0x16d)](_0x23f4df=>{const _0xcb07c8=_0x526c66;_0x23f4df[_0xcb07c8(0x1bb)](0x0,_0x23f4df[_0xcb07c8(0x1b3)]);}),bulletGrp['toArray']()[_0x526c66(0x16d)](_0x43697e=>{const _0x457a25=_0x526c66;_0x43697e[_0x457a25(0x1bb)](0x0,0x0);}),backgroundGrp[_0x526c66(0x1da)]()[_0x526c66(0x16d)](_0x1b345a=>{const _0x4a7421=_0x526c66;_0x1b345a[_0x4a7421(0x1bb)](0x0,_0x1b345a[_0x4a7421(0x1b3)]);}),powerupGrp[_0x526c66(0x1da)]()[_0x526c66(0x16d)](_0x1327b2=>{_0x1327b2['setSpeed'](0x0,0x5a);}),meteoriteGrp[_0x526c66(0x1da)]()[_0x526c66(0x16d)](_0x3bc726=>{const _0x2f0673=_0x526c66;_0x3bc726[_0x2f0673(0x1bb)](0x0,0x0);})):(backgroundGrp['toArray']()['forEach'](_0x16431b=>{const _0x3f6983=_0x526c66;_0x16431b[_0x3f6983(0x1bb)](_0x16431b[_0x3f6983(0x172)],0x5a);}),bulletGrp['toArray']()[_0x526c66(0x16d)](_0x475516=>{const _0xb7b60f=_0x526c66;_0x475516[_0xb7b60f(0x1bb)](_0x475516[_0xb7b60f(0x172)],_0x475516['rot']);}),powerupGrp[_0x526c66(0x1da)]()[_0x526c66(0x16d)](_0xc0fb20=>{const _0x56b973=_0x526c66;_0xc0fb20[_0x56b973(0x1bb)](0x1,0x5a);}),meteoriteGrp[_0x526c66(0x1da)]()['forEach'](_0x1447e4=>{_0x1447e4['setSpeed'](0x2,0x5a);}))),gameOver&&(cursor(),keyWentDown(ENTER)&&(game_music[_0x526c66(0x1b6)](),gameOver=![],window[_0x526c66(0x17c)][_0x526c66(0x195)]()),count++,game_over(),start_back(),drawSprites(backgroundGrp),restartBtn[_0x526c66(0x174)]()),pause?(!gameOver&&(background(0x0),textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text(_0x526c66(0x190),0x280,0x50),s1[_0x526c66(0x174)](),s2[_0x526c66(0x174)](),textSize(0x14),textAlign(RIGHT,CENTER),fill(0xff,0xcc,0x0),text(_0x526c66(0x1a1),0x104,0xc8),textSize(0x14),textAlign(RIGHT,CENTER),fill(0xff,0xcc,0x0),text(_0x526c66(0x1e2),0x104,0x12c),backToGame[_0x526c66(0x174)](),restartBtn[_0x526c66(0x174)]()),(s1[_0x526c66(0x17d)]||s2['isChanged'])&&(game_music['setVolume'](s1[_0x526c66(0x1c2)]),menu_click[_0x526c66(0x1ec)](s2['val']),bounce_sound[_0x526c66(0x1ec)](s2[_0x526c66(0x1c2)]),enemy_death[_0x526c66(0x1ec)](s2[_0x526c66(0x1c2)]),hit_damage[_0x526c66(0x1ec)](s2['val']),player_death[_0x526c66(0x1ec)](s2[_0x526c66(0x1c2)]),bullet_explosion['setVolume'](s2[_0x526c66(0x1c2)]),player_shoot[_0x526c66(0x1ec)](s2['val']))):(gameUpdate(),drawSprites(),drawSprites(bulletGrp),drawSprites(enemiesGrp),drawSprites(playerGrp),drawSprites(powerupGrp),drawSprites(meteoriteGrp),draw_gui());}}debug_up();}function game_over(){const _0x19573a=_0x29977c;textSize(0x32),textAlign(CENTER,CENTER),fill(0xff,0xcc,0x0),text('GAME\x20OVER',0x280,0x50),text(gameOvertxt,0x280,0xa0),text(_0x19573a(0x19a)+score['toString'](),0x280,0xf0),timesec<0xa?text(_0x19573a(0x1e3)+time[_0x19573a(0x1e6)]()+_0x19573a(0x1e0)+'0'+timesec[_0x19573a(0x1e6)](),0x280,0x140):text(_0x19573a(0x1e3)+time[_0x19573a(0x1e6)]()+_0x19573a(0x1e0)+timesec[_0x19573a(0x1e6)](),0x280,0x140),text(_0x19573a(0x1e7)+wave[_0x19573a(0x1e6)](),0x280,0x190);}let star_list=[];function draw_star(){const _0x2240aa=_0x29977c;let _0x2a46d6=createSprite(Math['floor'](Math['random']()*0x500),-0x5,0x1,0x1);_0x2a46d6[_0x2240aa(0x1a9)](etoileIMG),_0x2a46d6['currentSpeed']=Math[_0x2240aa(0x1d2)](Math[_0x2240aa(0x181)]()*0x6)+0x3,_0x2a46d6[_0x2240aa(0x1bb)](_0x2a46d6['currentSpeed'],0x5a),_0x2a46d6['rm']=function(){const _0x21b998=_0x2240aa;_0x2a46d6[_0x21b998(0x1d0)]['y']>0x258&&this['remove']();},star_list[_0x2240aa(0x193)](_0x2a46d6),_0x2a46d6[_0x2240aa(0x189)](backgroundGrp);}function update_star(){for(let _0x1ad9d7 of star_list){_0x1ad9d7['rm']();}}function start_back(){update_star(),count%0x4===0x0&&draw_star();}function createMeteorite(_0x4e47ed=sprAsteroide){const _0x419b2d=_0x29977c;let _0x1dbab1=Math[_0x419b2d(0x1d2)](Math[_0x419b2d(0x181)]()*0x501),_0x88726e=createSprite(_0x1dbab1,-0x64,0x5e,0x59);_0x88726e[_0x419b2d(0x1a9)](_0x4e47ed),_0x88726e['scale']=Math[_0x419b2d(0x181)]()*0x1+0x1,_0x88726e[_0x419b2d(0x1bb)](0x2,0x5a),_0x88726e['rm']=function(){const _0xffcfcd=_0x419b2d;this[_0xffcfcd(0x18d)]();},_0x88726e['addToGroup'](meteoriteGrp);}function updateMeteorite(){const _0x2ad0aa=_0x29977c;meteoriteGrp[_0x2ad0aa(0x16d)](_0x194ced=>{_0x194ced['collide'](playerGrp,function(){_0x194ced['rm'](),sprPlayer['rm'](0x64);}),meteoriteOutOfScreen(_0x194ced)&&_0x194ced['rm']();});}function generateMeteorite(){updateMeteorite(),count%0x708===0x0&&createMeteorite();}window[_0x29977c(0x1ef)]=preload,window['setup']=setup,window[_0x29977c(0x174)]=draw;