Last active
November 11, 2025 17:52
-
-
Save T0biii/9578fd9facb10e0a36b1268de9f74de8 to your computer and use it in GitHub Desktop.
Craft Attack 13 - Dragon Egg Rätsel Website (https://egghunt-production.up.railway.app/snake)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="en"><head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Schnakey</title> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| padding: 0; | |
| height: 100%; | |
| overflow: hidden; | |
| } | |
| body { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| background: #100D16; | |
| font-family: 'Arial', sans-serif; | |
| color: white; | |
| } | |
| #scoreContainer { | |
| font-size: 20px; | |
| margin-bottom: 25px; | |
| font-weight: bold; | |
| } | |
| #gameCanvas { | |
| border: 4px solid white; | |
| box-shadow: 0 10px 30px rgba(233,241,176,0.8); | |
| background-color: #E9F1B0; | |
| } | |
| #instructions { | |
| margin-top: 25px; | |
| text-align: center; | |
| font-size: 13px; | |
| opacity: 0.9; | |
| } | |
| .game-over { | |
| position: fixed; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| background: rgba(0,0,0,0.8); | |
| padding: 30px; | |
| border-radius: 10px; | |
| text-align: center; | |
| display: none; | |
| z-index: 1000; | |
| } | |
| .game-over button { | |
| margin-top: 15px; | |
| padding: 10px 30px; | |
| font-size: 16px; | |
| background: #667eea; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| transition: background 0.3s; | |
| } | |
| .game-over button:hover { | |
| background: #764ba2; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="scoreContainer"> | |
| <div id="score">Score: 0 | High Score: 0</div> | |
| <div id="highscore"></div> | |
| </div> | |
| <canvas id="gameCanvas" width="640" height="640"></canvas> | |
| <div id="instructions"> | |
| Pfeiltasten oder WASD nutzen! | |
| </div> | |
| <div id="gameOver" class="game-over"> | |
| <h2>Game Over!</h2> | |
| <p id="finalScore"></p> | |
| <button onclick="restartGame()">Play Again</button> | |
| </div> | |
| <script> | |
| const _0x1f5986=_0x3495;(function(_0x415c08,_0x201c98){const _0x77c1a4=_0x3495,_0x59ab2e=_0x415c08();while(!![]){try{const _0x27c665=-parseInt(_0x77c1a4(0xa9))/0x1+parseInt(_0x77c1a4(0xae))/0x2+-parseInt(_0x77c1a4(0xc3))/0x3*(-parseInt(_0x77c1a4(0x9d))/0x4)+-parseInt(_0x77c1a4(0xd6))/0x5+parseInt(_0x77c1a4(0xa3))/0x6+parseInt(_0x77c1a4(0xab))/0x7+-parseInt(_0x77c1a4(0xa8))/0x8;if(_0x27c665===_0x201c98)break;else _0x59ab2e['push'](_0x59ab2e['shift']());}catch(_0x57f0ec){_0x59ab2e['push'](_0x59ab2e['shift']());}}}(_0x3c20,0xade1d));const canvas=document[_0x1f5986(0xbe)]('gameCanvas'),ctx=canvas[_0x1f5986(0xcb)]('2d'),gameOverDiv=document[_0x1f5986(0xbe)](_0x1f5986(0xac)),backgroundImage=new Image();function _0x3495(_0x476cea,_0x397565){const _0x3c2056=_0x3c20();return _0x3495=function(_0x3495f0,_0x5db110){_0x3495f0=_0x3495f0-0x94;let _0x16e1d0=_0x3c2056[_0x3495f0];return _0x16e1d0;},_0x3495(_0x476cea,_0x397565);}backgroundImage['src']=_0x1f5986(0x96);const alexHeadImage=new Image();alexHeadImage[_0x1f5986(0xd9)]=_0x1f5986(0xb4);function _0x3c20(){const _0x192e15=['aWdl','262876IrmqAT','\x20|\x20High\x20Score:\x20','ArrowUp','#0F0616','textContent','some','5836344ripWSQ','IFRy','T3J0','fillRect','biBm','5576048pzfKSk','1393273TXvMsW','display','7525294NcOSjc','gameOver','ArrowDown','496112VUvmBY','Arrow','style','getItem','snakeHighScore','addEventListener','https://i.imgur.com/wBHdsLT.png','arrowright','dCB6','dSBk','wasd','block','complete','arrowleft','random','repeat','getElementById','https://i.imgur.com/02YssJn.png','height','https://i.imgur.com/xAPxbZM.png','none','60qSajsL','forEach','fillStyle','setItem','#45b393','32Vu','key','bSBo','getContext','score','join','finalScore','drawImage','keydown','IGRl','Your\x20Score:\x20','ZW0g','floor','toLowerCase','4038510sFHUPw','includes','ArrowRight','src','arrowdown','#4ecca3','arrowup','https://i.imgur.com/HCjlI0G.png','IGFu','#E9F1B0','createPattern','highscore','unshift'];_0x3c20=function(){return _0x192e15;};return _0x3c20();}const steveHeadImage=new Image();steveHeadImage[_0x1f5986(0xd9)]=_0x1f5986(0xbf);const dragonEggImage=new Image();dragonEggImage[_0x1f5986(0xd9)]=_0x1f5986(0xc1);const _0x4a2f=[_0x1f5986(0xd3),_0x1f5986(0xca),'5G5l','R2Vo',_0x1f5986(0xa5)],_0x7b3e=['ZWls',_0x1f5986(0xb6),_0x1f5986(0x97),_0x1f5986(0x9c),_0x1f5986(0xa7)],_0x9c1d=['bGll',_0x1f5986(0xb7),_0x1f5986(0xd1),_0x1f5986(0xa4),_0x1f5986(0xc8)];function _0xdecode(){const _0x5baa59=_0x1f5986,_0x1f440f=[_0x4a2f[0x3],_0x7b3e[0x1],_0x9c1d[0x1],_0x4a2f[0x0],_0x4a2f[0x4]],_0x44744d=[_0x7b3e[0x2],_0x9c1d[0x2],_0x4a2f[0x1],_0x7b3e[0x0],_0x7b3e[0x3]],_0x44d288=[_0x9c1d[0x3],_0x4a2f[0x2],_0x7b3e[0x4],_0x9c1d[0x0],_0x9c1d[0x4]];return[..._0x1f440f,..._0x44744d,..._0x44d288][_0x5baa59(0xcd)]('');}const gridSize=0x20,tileCount=canvas['width']/gridSize;let snake=[{'x':0xa,'y':0xa}],dragonEgg={'x':0xf,'y':0xf},dx=0x0,dy=0x0,score=0x0,highScore=localStorage[_0x1f5986(0xb1)](_0x1f5986(0xb2))||0x0,gameRunning=![],gameOver=![],secretRevealed=![],moveCooldown=0x0;window[_0x1f5986(0xb3)](_0x1f5986(0xd0),_0x50c7b8=>{const _0x6807dc=_0x1f5986;[_0x6807dc(0x9f),_0x6807dc(0xad),'ArrowLeft',_0x6807dc(0xd8),'\x20'][_0x6807dc(0xd7)](_0x50c7b8[_0x6807dc(0xc9)])&&gameRunning&&_0x50c7b8['preventDefault']();});function _getDragonEggImage(_0x1e634e){const _0x42aabd=_0x1f5986;dragonEggImage[_0x42aabd(0xba)]?_0x1e634e['drawImage'](dragonEggImage,dragonEgg['x']*gridSize,dragonEgg['y']*gridSize,gridSize,gridSize):(_0x1e634e[_0x42aabd(0xc5)]=_0x42aabd(0xa0),_0x1e634e[_0x42aabd(0xa6)](dragonEgg['x']*gridSize,dragonEgg['y']*gridSize,gridSize-0x2,gridSize-0x2));}function _getAlexImage(_0x2840a9,_0x23bf9d){const _0x576ff1=_0x1f5986;alexHeadImage[_0x576ff1(0xba)]?_0x2840a9['drawImage'](alexHeadImage,_0x23bf9d['x']*gridSize,_0x23bf9d['y']*gridSize,gridSize,gridSize):(_0x2840a9[_0x576ff1(0xc5)]=_0x576ff1(0x94),_0x2840a9[_0x576ff1(0xa6)](_0x23bf9d['x']*gridSize,_0x23bf9d['y']*gridSize,gridSize-0x2,gridSize-0x2));}function _getSteveImage(_0x3e5fd8,_0x4a2c58){const _0x4ac8dc=_0x1f5986;steveHeadImage[_0x4ac8dc(0xba)]?_0x3e5fd8[_0x4ac8dc(0xcf)](steveHeadImage,_0x4a2c58['x']*gridSize,_0x4a2c58['y']*gridSize,gridSize,gridSize):(_0x3e5fd8[_0x4ac8dc(0xc5)]=_0x4ac8dc(0xc7),_0x3e5fd8[_0x4ac8dc(0xa6)](_0x4a2c58['x']*gridSize,_0x4a2c58['y']*gridSize,gridSize-0x2,gridSize-0x2));}function drawGame(){const _0x42bf1f=_0x1f5986;if(backgroundImage[_0x42bf1f(0xba)]){const _0x5f257d=ctx[_0x42bf1f(0x99)](backgroundImage,_0x42bf1f(0xbd));ctx['fillStyle']=_0x5f257d,ctx[_0x42bf1f(0xa6)](0x0,0x0,canvas['width'],canvas[_0x42bf1f(0xc0)]);}else ctx[_0x42bf1f(0xc5)]=_0x42bf1f(0x98),ctx[_0x42bf1f(0xa6)](0x0,0x0,canvas['width'],canvas[_0x42bf1f(0xc0)]);snake[_0x42bf1f(0xc4)]((_0x27d57b,_0x5b229e)=>{_0x5b229e%0x2?_getSteveImage(ctx,_0x27d57b):_getAlexImage(ctx,_0x27d57b);}),_getDragonEggImage(ctx);if(gameRunning){const _0x53405c={'x':snake[0x0]['x']+dx,'y':snake[0x0]['y']+dy};if(_0x53405c['x']<0x0||_0x53405c['x']>=tileCount||_0x53405c['y']<0x0||_0x53405c['y']>=tileCount){endGame();return;}if(snake[_0x42bf1f(0xa2)](_0x1504f0=>_0x1504f0['x']===_0x53405c['x']&&_0x1504f0['y']===_0x53405c['y'])){endGame();return;}snake[_0x42bf1f(0x9b)](_0x53405c),_0x53405c['x']===dragonEgg['x']&&_0x53405c['y']===dragonEgg['y']?(score++,updateScore(),generatedragonEgg(),score===0x19&&!secretRevealed&&(secretRevealed=!![],decodeAndShowSecret())):snake['pop'](),moveCooldown>0x0&&moveCooldown--;}}function decodeAndShowSecret(){const _0x189270=atob(_0xdecode());setTimeout(()=>{const _0x1a04fe=_0x3495;alert(_0x189270),document[_0x1a04fe(0xbe)](_0x1a04fe(0x9a))[_0x1a04fe(0xa1)]=''+_0x189270;},0x64);}function generatedragonEgg(){const _0x1c27af=_0x1f5986;dragonEgg={'x':Math[_0x1c27af(0xd4)](Math[_0x1c27af(0xbc)]()*tileCount),'y':Math['floor'](Math['random']()*tileCount)},snake[_0x1c27af(0xa2)](_0x3777e3=>_0x3777e3['x']===dragonEgg['x']&&_0x3777e3['y']===dragonEgg['y'])&&generatedragonEgg();}function updateScore(){const _0x469cc5=_0x1f5986;score>highScore&&(highScore=score,localStorage[_0x469cc5(0xc6)](_0x469cc5(0xb2),highScore)),document[_0x469cc5(0xbe)](_0x469cc5(0xcc))['textContent']='Score:\x20'+score+_0x469cc5(0x9e)+highScore;}function endGame(){const _0x35f51d=_0x1f5986;gameRunning=![],gameOver=!![],document[_0x35f51d(0xbe)](_0x35f51d(0xce))[_0x35f51d(0xa1)]=_0x35f51d(0xd2)+score,gameOverDiv[_0x35f51d(0xb0)][_0x35f51d(0xaa)]=_0x35f51d(0xb9);}function restartGame(){const _0x365dc4=_0x1f5986;snake=[{'x':0xa,'y':0xa}],dx=0x0,dy=0x0,score=0x0,gameRunning=![],gameOver=![],secretRevealed=![],updateScore(),generatedragonEgg(),gameOverDiv['style'][_0x365dc4(0xaa)]=_0x365dc4(0xc2);}document[_0x1f5986(0xb3)](_0x1f5986(0xd0),_0x597260=>{const _0x489e76=_0x1f5986;if(gameOver||moveCooldown>0x0)return;!gameRunning&&(_0x597260['key']['startsWith'](_0x489e76(0xaf))||_0x489e76(0xb8)[_0x489e76(0xd7)](_0x597260[_0x489e76(0xc9)][_0x489e76(0xd5)]()))&&(gameRunning=!![]);const _0x1264dd=_0x597260['key'][_0x489e76(0xd5)]();if((_0x1264dd===_0x489e76(0xbb)||_0x1264dd==='a')&&dx===0x0)dx=-0x1,dy=0x0,moveCooldown=0x1;else{if((_0x1264dd===_0x489e76(0xb5)||_0x1264dd==='d')&&dx===0x0)dx=0x1,dy=0x0,moveCooldown=0x1;else{if((_0x1264dd===_0x489e76(0x95)||_0x1264dd==='w')&&dy===0x0)dx=0x0,dy=-0x1,moveCooldown=0x1;else(_0x1264dd===_0x489e76(0xda)||_0x1264dd==='s')&&dy===0x0&&(dx=0x0,dy=0x1,moveCooldown=0x1);}}}),setInterval(drawGame,0x64),updateScore(); | |
| </script> | |
| </body></html> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open Console and run:
decodeAndShowSecret()to get secret directly