xxxxxxxxxx
1
(function(_0x171743,_0x5f02ce){const _0x51c44d=_0x3318,_0x2cd7ac=_0x171743();while(!![]){try{const _0x10ff91=parseInt(_0x51c44d(0x1db))/0x1*(parseInt(_0x51c44d(0x1cd))/0x2)+parseInt(_0x51c44d(0x1cb))/0x3+parseInt(_0x51c44d(0x1df))/0x4+-parseInt(_0x51c44d(0x1e7))/0x5*(parseInt(_0x51c44d(0x1dd))/0x6)+-parseInt(_0x51c44d(0x1d7))/0x7+parseInt(_0x51c44d(0x1ce))/0x8+-parseInt(_0x51c44d(0x1d5))/0x9*(parseInt(_0x51c44d(0x1d0))/0xa);if(_0x10ff91===_0x5f02ce)break;else _0x2cd7ac['push'](_0x2cd7ac['shift']());}catch(_0x52147b){_0x2cd7ac['push'](_0x2cd7ac['shift']());}}}(_0x3f06,0x650d5));function _0x3318(_0x577204,_0x3961d0){const _0x3f06f1=_0x3f06();return _0x3318=function(_0x3318f6,_0x59ea15){_0x3318f6=_0x3318f6-0x1ca;let _0x1fa3ca=_0x3f06f1[_0x3318f6];return _0x1fa3ca;},_0x3318(_0x577204,_0x3961d0);}let player1x=0xc8,player1y=0x64,player2x=0xc8,player2y=0x12c,barrier1x=0xc8,barrier2x=0xc8,barrier1move=0x1,barrier2move=-0x1,barrier1hpNorm=0xa,barrier2hpNorm=0xa,shotonce1=0x0,shotonce2=0x0,projectileArr1=[],projectileArr2=[],whichcanvas=0x0,projectileSlow1=0x0,projectileSlow2=0x0,distp1proj=0x0,distp2proj=0x0,distp1projB1=0x0,distp1projB2=0x0,distp2projB1=0x0,distp2projB2=0x0,playerStun1=0x0,playerStun2=0x0;function setup(){const _0x3cf42e=_0x3318;createCanvas(0x190,0x19a),setInterval(projectileMove,0x1),setInterval(stunTimer,0x1),setInterval(barrierMove,0x1),button=createButton(_0x3cf42e(0x1d6)),button[_0x3cf42e(0x1de)](reset),button[_0x3cf42e(0x1d2)](0xf0,0xdc),button2=createButton('Retry'),button2['mousePressed'](reset),button2[_0x3cf42e(0x1d2)](0x5dc0,0xdc);}function reset(){const _0x547f4f=_0x3318;player1x=0xc8,player1y=0x64,player2x=0xc8,player2y=0x12c,barrier1x=0xc8,barrier2x=0xc8,barrier1move=0x1,barrier2move=-0x1,barrier1hpNorm=0xa,barrier2hpNorm=0xa,barrier1hpHome=0x3,barrier2hpHome=0x3,shotonce1=0x0,shotonce2=0x0,projectileArr1=[],projectileArr2=[],projectileSlow1=0x0,projectileSlow2=0x0,distp1proj=0x0,distp2proj=0x0,distp1projB1=0x0,distp1projB2=0x0,distp2projB1=0x0,distp2projB2=0x0,playerStun1=0x0,playerStun2=0x0,whichcanvas=0x1,button[_0x547f4f(0x1d2)](0x5dc0,0xdc),button2[_0x547f4f(0x1d2)](0x5dc0,0xdc);}function _0x3f06(){const _0x418164=['darkorange','ySpeed','splice','Goal\x20is\x20to\x20destroy\x20opposing\x20barrier','1759674IIZbcp','blue','93326NpDIOE','3657400xPpDLc','Shift\x20or\x20M\x20to\x20shoot','8471570RlXRPT','Pixel\x20Battle!\x20(Local\x20Multiplayer\x20Edition)','position','lime','cyan','9fxGRta','Start','2190853syILha','WASD\x20to\x20move\x20as\x20player\x201','pink','Barrier\x20breaks\x20after\x2010\x20hits','7fpjDtA','white','172002CTpQLP','mousePressed','1044020ZQSnLD','gold','black','You\x20will\x20will\x20get\x20stuned\x20if\x20hit\x20by\x20projectile','Player\x202\x20Wins','length','red','magenta','10GaTNyp'];_0x3f06=function(){return _0x418164;};return _0x3f06();}function stunTimer(){playerStun1>=0x1&&playerStun1--,playerStun2>=0x1&&playerStun2--;}function barrierMove(){barrier1x+=barrier1move,barrier1x>=0x140&&(barrier1move*=-0x1),barrier1x<=0x9&&(barrier1move*=-0x1),barrier2x+=barrier2move,barrier2x>=0x186&&(barrier2move*=-0x1),barrier2x<=0x4f&&(barrier2move*=-0x1);}function ProjectileP1(){const _0x5e7a1d=_0x3318;if(projectileSlow1==0x0)projectileArr1[projectileArr1['length']]=new Projectile1(player1x+0x5,player1y+0x19,0x0,0x1);else projectileSlow1==0x1&&(projectileArr1[projectileArr1[_0x5e7a1d(0x1e4)]]=new Projectile1(player1x+0x5,player1y+0x19,0x0,0.3));}function ProjectileP2(){const _0x44fd09=_0x3318;if(projectileSlow2==0x0)projectileArr2[projectileArr2['length']]=new Projectile2(player2x+0x5,player2y-0x5,0x0,-0x1);else projectileSlow2==0x1&&(projectileArr2[projectileArr2[_0x44fd09(0x1e4)]]=new Projectile2(player2x+0x5,player2y-0x5,0x0,-0.3));}function projectileMove(){const _0x2450ec=_0x3318;if(projectileArr1[_0x2450ec(0x1e4)]>0x0)for(let _0x2e041e=0x0;_0x2e041e<projectileArr1[_0x2450ec(0x1e4)];_0x2e041e++){projectileArr1[_0x2e041e]['y']+=projectileArr1[_0x2e041e][_0x2450ec(0x1e9)],distp2proj=dist(player2x,player2y,projectileArr1[_0x2e041e]['x'],projectileArr1[_0x2e041e]['y']);distp2proj<=5.5&&(projectileArr1[_0x2450ec(0x1ea)](_0x2e041e,0x1),playerStun1==0x0&&(playerStun1=0x3e8));distp2projB1=dist(barrier2x-0x14,0x190,projectileArr1[_0x2e041e]['x'],projectileArr1[_0x2e041e]['y']),distp2projB2=dist(barrier2x-0x32,0x190,projectileArr1[_0x2e041e]['x'],projectileArr1[_0x2e041e]['y']);if(distp2projB1<=0x14)projectileArr1[_0x2450ec(0x1ea)](_0x2e041e,0x1),barrier1hpNorm--,barrier1hpNorm==0x0&&(whichcanvas=0x3);else distp2projB2<=0x14&&(projectileArr1[_0x2450ec(0x1ea)](_0x2e041e,0x1),barrier1hpNorm--,barrier1hpNorm==0x0&&(whichcanvas=0x3));}for(let _0x29f8c6=0x0;_0x29f8c6<projectileArr2[_0x2450ec(0x1e4)];_0x29f8c6++){projectileArr2[_0x29f8c6]['y']+=projectileArr2[_0x29f8c6]['ySpeed'],distp1proj=dist(player1x,player1y,projectileArr2[_0x29f8c6]['x'],projectileArr2[_0x29f8c6]['y']);distp1proj<=0x6&&(projectileArr2[_0x2450ec(0x1ea)](_0x29f8c6,0x1),playerStun2==0x0&&(playerStun2=0x3e8));distp1projB1=dist(barrier1x-0x14,0x0,projectileArr2[_0x29f8c6]['x'],projectileArr2[_0x29f8c6]['y']),distp1projB2=dist(barrier1x-0x32,0x0,projectileArr2[_0x29f8c6]['x'],projectileArr2[_0x29f8c6]['y']);if(distp1projB1<=0x14)projectileArr2[_0x2450ec(0x1ea)](_0x29f8c6,0x1),barrier2hpNorm--,barrier2hpNorm==0x0&&(whichcanvas=0x2);else distp1projB2<=0x14&&(projectileArr2[_0x2450ec(0x1ea)](_0x29f8c6,0x1),barrier2hpNorm--,barrier2hpNorm==0x0&&(whichcanvas=0x2));}}function draw(){const _0x4055af=_0x3318;fill(_0x4055af(0x1e1)),strokeWeight(0x5),stroke('black'),rect(0x0,0x0,0x190,0x19a);whichcanvas==0x0&&(textSize(0x14),fill(_0x4055af(0x1dc)),text(_0x4055af(0x1d1),0x1e,0x50),textSize(0xf),stroke(_0x4055af(0x1e5)),strokeWeight(0x0),fill(_0x4055af(0x1e5)),text(_0x4055af(0x1d8),0xa,0x82),fill(_0x4055af(0x1d4)),text('PL;\x27\x20to\x20move\x20as\x20player\x202',0xa,0xa0),fill(_0x4055af(0x1e6)),text(_0x4055af(0x1e2),0xa,0xbe),fill(_0x4055af(0x1e0)),text(_0x4055af(0x1cf),0xa,0xdc),fill(_0x4055af(0x1dc)),text('Press\x20E\x20or\x20[\x20to\x20slow\x20your\x20bullets',0xa,0xfa),fill(_0x4055af(0x1d3)),text(_0x4055af(0x1ca),0xa,0x118),fill(_0x4055af(0x1e8)),text(_0x4055af(0x1da),0xa,0x136));whichcanvas==0x2&&(textSize(0x28),fill(_0x4055af(0x1e5)),noStroke(),text(_0x4055af(0x1e3),0x55,0xc8),textSize(0xf),strokeWeight(0x5),button2[_0x4055af(0x1d2)](0xad,0xea));whichcanvas==0x3&&(textSize(0x28),fill(_0x4055af(0x1d4)),noStroke(),text('Player\x201\x20Wins',0x55,0xc8),textSize(0xf),strokeWeight(0x5),button2[_0x4055af(0x1d2)](0xad,0xea));if(whichcanvas==0x1){fill('cyan'),stroke(_0x4055af(0x1dc)),strokeWeight(0x5),rect(0x32,0x23,0x12c,0xa0),fill(_0x4055af(0x1e5)),stroke(_0x4055af(0x1d9)),rect(0x32,0xdc,0x12c,0xa0),fill(_0x4055af(0x1dc)),stroke(_0x4055af(0x1cc)),strokeWeight(0x2),rect(player1x,player1y,0xf,0xf),fill(_0x4055af(0x1e1)),stroke('pink'),rect(player2x,player2y,0xf,0xf),fill(_0x4055af(0x1e1)),stroke(_0x4055af(0x1d4)),strokeWeight(0x2),rect(barrier1x,0xa,0x46,0xa),fill(_0x4055af(0x1e1)),stroke(_0x4055af(0x1e5)),strokeWeight(0x2),rect(barrier2x,0x186,-0x46,0xa);playerStun2==0x0&&(keyIsDown(keyCode=0x41)&&(player1x>=0x32&&(player1x-=3.25)),keyIsDown(keyCode=0x44)&&(player1x<=0x14f&&(player1x+=3.25)),keyIsDown(keyCode=0x53)&&(player1y<=0xaf&&(player1y+=3.25)),keyIsDown(keyCode=0x57)&&(player1y>=0x23&&(player1y-=3.25)));playerStun1==0x0&&(keyIsDown(keyCode=0x4c)&&(player2x>=0x32&&(player2x-=3.25)),keyIsDown(keyCode=0xde)&&(player2x<=0x14f&&(player2x+=3.25)),keyIsDown(keyCode=0x50)&&(player2y>=0xdc&&(player2y-=3.25)),keyIsDown(keyCode=0xba)&&(player2y<=0x16c&&(player2y+=3.25)));for(let _0x2ca719=0x0;_0x2ca719<projectileArr1[_0x4055af(0x1e4)];_0x2ca719++){noStroke(),fill(_0x4055af(0x1e1)),rect(projectileArr1[_0x2ca719]['x'],projectileArr1[_0x2ca719]['y'],0x5,0x5),fill('white'),rect(projectileArr1[_0x2ca719]['x']+1.5,projectileArr1[_0x2ca719]['y']+1.5,0x2,0x2);}keyIsDown(keyCode=0x10)&&(shotonce1==0x0&&ProjectileP1(),shotonce1++,shotonce1==0xa&&(shotonce1=0x0));for(let _0x4ea1b6=0x0;_0x4ea1b6<projectileArr2[_0x4055af(0x1e4)];_0x4ea1b6++){noStroke(),fill(_0x4055af(0x1e1)),rect(projectileArr2[_0x4ea1b6]['x'],projectileArr2[_0x4ea1b6]['y'],0x5,0x5),fill('white'),rect(projectileArr2[_0x4ea1b6]['x']+1.5,projectileArr2[_0x4ea1b6]['y']+1.5,0x2,0x2);}keyIsDown(keyCode=0x4d)&&(shotonce2==0x0&&ProjectileP2(),shotonce2++,shotonce2==0xa&&(shotonce2=0x0)),keyIsDown(keyCode=0x45)&&(projectileSlow1==0x0?projectileSlow1=0x1:projectileSlow1=0x0),keyIsDown(keyCode=0xdb)&&(projectileSlow2==0x0?projectileSlow2=0x1:projectileSlow2=0x0);}}function mouseClicked(){console['log'](mouseX+','+mouseY);}