Meta Description" name="description" />
data:text/html,<html><head><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"><style>body{margin:0;overflow:hidden;background:#87CEEB}canvas{display:block}</style></head><body><canvas id=c></canvas><div style="position:fixed;bottom:0;left:0;right:0;background:rgba(0,0,0,0.7);color:#fff;padding:10px;text-align:center;font:20px Arial">⬅️➡️ hareket | dokun kır/yapıştır | 1-5 blok seç</div><script>const c=document.getElementById('c'),x=c.getContext('2d'),W=innerWidth,H=innerHeight;c.width=W;c.height=H;const B=40,WW=600,WH=120;let world=Array(WH).fill().map(()=>Array(WW).fill(0));const col=["","#8B4513","#228B22","#808080","#8B5A2B","#006400"];let inv=[0,99,99,99,99,99],sel=1,px=WW*B/2,py=100,vx=0,vy=0,cam=0;function gen(){let h=70;for(let i=0;i<WW;i++){h+=Math.sin(i*.03)*4;h=Math.max(50,Math.min(90,h));for(let y=0;y<WH;y++)world[y][i]=(y>h+4?3:y>h?1:y==h?2:0);if(Math.random()<.04&&h<WH-12){let th=6;for(let k=1;k<=th;k++)if(h-k>=0)world[h-k][i]=4;for(let a=-2;a<=2;a++)for(let b=-4;b<=0;b++){let tx=i+a,ty=h-th+b;if(tx>=0&&tx<WW&&ty>=0)world[ty][tx]=5}}}gen();function draw(){x.fillStyle="#87CEEB";x.fillRect(0,0,W,H);let night=(Math.sin(Date.now()/5e3)+1)*60;x.fillStyle=`rgba(0,0,30,${night/255})`;x.fillRect(0,0,W,H);cam=px-W/2;let sx=Math.floor(cam/B),ex=sx+Math.ceil(W/B)+2;for(let i=Math.max(0,sx);i<Math.min(WW,ex);i++)for(let j=0;j<WH;j++)if(world[j][i]){x.fillStyle=col[world[j][i]];x.fillRect(i*B-cam,j*B,B,B);x.strokeStyle="#000";x.strokeRect(i*B-cam,j*B,B,B)}x.fillStyle="#FFB6C1";x.fillRect(px-cam,py,30,60)}draw();c.ontouchstart=e=>{e.preventDefault();let t=e1
1
2KB
2KB
116.0ms
176.0ms
116.0ms