Transaction e79e51d280f4444c61b6e25f3cf18b935686f180c071d088f9abde98aaf7b10e
1 Input
-
e3336435052ee1927e5b26c0a5902ac32c012517083c1041db8e95b3b3c87bfa:1
OP_DATA_32(32) 64be43f6701bb639046b421ee349a44935dc3e2a123245b27e3c5b3247d08926OP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_23(23) text/html;charset=utf-8OP_0(0)OP_PUSHDATA2(77) <!doctype html> <html> <head> <title>chesusss</title> <meta charset=UTF-8> <style>body,html{height:100%;margin:0;background:url('/content/0d0927c8f2ab2de7331a99560c296a8d1746aa08e80bf20c092cc2cc373efc8bi0') no-repeat center center fixed;background-size:1000px 1000px;overflow:hidden}#game-container{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;height:100%;margin-top:-102px;margin-left:17px;position:relative}#game-score-container{position:relative}canvas{border:0 solid #OP_PUSHDATA2(77) fff}#score{position:absolute;bottom:360px;right:40px;font-size:18px;color:#fff;text-align:right}#highscore-container{position:absolute;bottom:375px;right:40px;font-size:18px;color:#fff;text-align:right}canvas{border:0 solid #fff}.inverted{filter:invert(100%)}.control-button{background-color:transparent;border:transparent;color:transparent;font-size:24px;padding:10px 20px;position:absolute;cursor:pointer}#up-button{top:68%;left:39.5%}#down-button{top:68%;left:43.5%}#left-button{top:68.5%;left:53%}#right-button{top:6OP_PUSHDATA2(77) 8%;left:48.5%}</style> </head> <body> <div id=game-container> <div id=game-score-container> <canvas width=400 height=400 id=game></canvas> <div id=score>Score: 0</div> <div id=highscore-container> <div id=highscore>High Score: 0</div> </div> </div> </div> <button class=control-button id=up-button></button> <button class=control-button id=down-button></button> <button class=control-button id=left-button></button> <button class=control-button id=right-button></button> <script>var canvas=document.getElOP_PUSHDATA2(77) ementById("game"),context=canvas.getContext("2d"),scoreDisplay=document.getElementById("score"),highscoreDisplay=document.getElementById("highscore"),grid=16,count=0,score=0,highScore=0,snake={x:160,y:160,dx:grid,dy:0,cells:[],maxCells:4},cheeseEmoji="🧀",apple={x:320,y:320},snakeImage=new Image;snakeImage.src="/content/e92a970b37cd9a570330a2702a2d531a2cbb3fa95e89bd7a51414bbe141f2f95i0";var pizzaEmoji="🍕",pizzaApple={x:-grid,y:-grid,visible:!1,timeout:null},diamondEmoji="💎",diamondApple={x:-grid,y:-grid,visOP_PUSHDATA2(77) ible:!1,timeout:null},isInvincible=!1;function showPizzaApple(){pizzaApple.x=getRandomInt(0,25)*grid,pizzaApple.y=getRandomInt(0,25)*grid,pizzaApple.visible=!0,pizzaApple.timeout=setTimeout((function(){pizzaApple.visible=!1,pizzaApple.x=-grid,pizzaApple.y=-grid}),2500)}function showDiamondApple(){isInvincible||(diamondApple.x=getRandomInt(0,25)*grid,diamondApple.y=getRandomInt(0,25)*grid,diamondApple.visible=!0,diamondApple.timeout=setTimeout((function(){diamondApple.visible=!1,diamondApple.x=-grid,diamondApple.y=-OP_PUSHDATA2(77) grid}),2500))}function getRandomInt(e,n){return Math.floor(Math.random()*(n-e))+e}function checkHighScore(){score>highScore&&(highScore=score),highscoreDisplay.textContent="High Score: "+highScore}function resetGame(){snake.x=160,snake.y=160,snake.cells=[],snake.maxCells=4,snake.dx=grid,snake.dy=0,apple.x=getRandomInt(0,25)*grid,apple.y=getRandomInt(0,25)*grid,score=0,scoreDisplay.textContent="Score: "+score}function loop(){requestAnimationFrame(loop),++count<4||(count=0,context.clearRect(0,0,canvas.width,canvas.heOP_PUSHDATA2(77) ight),snake.x+=snake.dx,snake.y+=snake.dy,snake.x<0?snake.x=canvas.width-grid:snake.x>=canvas.width&&(snake.x=0),snake.y<0?snake.y=canvas.height-grid:snake.y>=canvas.height&&(snake.y=0),snake.cells.unshift({x:snake.x,y:snake.y}),snake.cells.length>snake.maxCells&&snake.cells.pop(),context.font="20px Arial",context.fillStyle="white",context.fillText(cheeseEmoji,apple.x,apple.y+grid),pizzaApple.visible&&context.fillText(pizzaEmoji,pizzaApple.x,pizzaApple.y+grid),diamondApple.visible&&context.fillText(diamondEmoji,diaOP_PUSHDATA2(77) mondApple.x,diamondApple.y+grid),snake.cells.forEach((function(e,n){0===n?context.drawImage(snakeImage,e.x,e.y,grid,grid):(context.fillStyle="#f4e108",context.fillRect(e.x,e.y,grid,grid)),e.x===apple.x&&e.y===apple.y&&(snake.maxCells++,score+=100,scoreDisplay.textContent="Score: "+score,apple.x=getRandomInt(0,25)*grid,apple.y=getRandomInt(0,25)*grid,Math.random()<.1&&showPizzaApple(),Math.random()<.02&&showDiamondApple()),e.x===pizzaApple.x&&e.y===pizzaApple.y&&pizzaApple.visible&&(clearTimeout(pizzaApple.timeout),OP_PUSHDATA2(77) pizzaApple.visible=!1,pizzaApple.x=-grid,pizzaApple.y=-grid,score+=1e3,scoreDisplay.textContent="Score: "+score),e.x===diamondApple.x&&e.y===diamondApple.y&&diamondApple.visible&&(clearTimeout(diamondApple.timeout),diamondApple.visible=!1,diamondApple.x=-grid,diamondApple.y=-grid,score*=2,scoreDisplay.textContent="Score: "+score,isInvincible=!0,document.documentElement.classList.add("inverted"),setTimeout((function(){document.documentElement.classList.remove("inverted"),isInvincible=!1}),1e4));for(var t=n+1;t<snakeOP_PUSHDATA2(77) .cells.length;t++)e.x===snake.cells[t].x&&e.y===snake.cells[t].y&&(isInvincible||(checkHighScore(),resetGame()))})))}document.addEventListener("keydown",(function(e){37!==e.which&&65!==e.which||0!==snake.dx?38!==e.which&&87!==e.which||0!==snake.dy?39!==e.which&&68!==e.which||0!==snake.dx?40!==e.which&&83!==e.which||0!==snake.dy||(snake.dy=grid,snake.dx=0):(snake.dx=grid,snake.dy=0):(snake.dy=-grid,snake.dx=0):(snake.dx=-grid,snake.dy=0)})),document.getElementById("up-button").addEventListener("click",(function(){0=OP_PUSHDATA2(77) ==snake.dy&&(snake.dy=-grid,snake.dx=0)})),document.getElementById("down-button").addEventListener("click",(function(){0===snake.dy&&(snake.dy=grid,snake.dx=0)})),document.getElementById("left-button").addEventListener("click",(function(){0===snake.dx&&(snake.dx=-grid,snake.dy=0)})),document.getElementById("right-button").addEventListener("click",(function(){0===snake.dx&&(snake.dx=grid,snake.dy=0)}));let touchStartX=0,touchStartY=0,touchEndX=0,touchEndY=0;document.addEventListener("touchstart",(function(e){touchStOP_PUSHDATA2(77) artX=e.touches[0].clientX,touchStartY=e.touches[0].clientY})),document.addEventListener("touchmove",(function(e){e.preventDefault(),touchEndX=e.touches[0].clientX,touchEndY=e.touches[0].clientY})),document.addEventListener("touchend",(function(){const e=touchEndX-touchStartX,n=touchEndY-touchStartY;Math.abs(e)>Math.abs(n)?e>0&&0===snake.dx?(snake.dx=grid,snake.dy=0):e<0&&0===snake.dx&&(snake.dx=-grid,snake.dy=0):n>0&&0===snake.dy?(snake.dy=grid,snake.dx=0):n<0&&0===snake.dy&&(snake.dy=-grid,snake.dx=0)})),snakeImagOP_DATA_75(75) e.onload=function(){requestAnimationFrame(loop)}</script> </body> </html>OP_ENDIF(104)
2 Outputs
- e79e51d280f4444c61b6e25f3cf18b935686f180c071d088f9abde98aaf7b10e:0
- e79e51d280f4444c61b6e25f3cf18b935686f180c071d088f9abde98aaf7b10e:1
value 546
address bc1pw9antkwxcaq83wmr2q58wjvvjk5qw9945um7rtf9zjdzafdyg5yq0ydlsc
value 2613
address bc1qnxul0k7yjeczm4fwtxv3drhkhc5cr0gwlk994n