Share this result

Previews are deleted daily. Get a permanent share link sent to your inbox:
Script
<!DOCTYPE html> <html lang="id"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> <title>Zona Perang FPS</title> <style> :root{--bg:#05080f;--ink:#e6eefc;--mut:#8a9bb8;--pri:#ffb300;--pinv:#1a1000;--ov:rgba(5,8,15,.9);color-scheme:dark} @media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--bg:#dfe7f1;--ink:#0b1b2e;--mut:#51657f;--pri:#b36b00;--pinv:#fff;--ov:rgba(235,241,248,.92);color-scheme:light}} *{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none} html,body{height:100%;margin:0;background:var(--bg);color:var(--ink);font:13px/1.4 ui-monospace,Menlo,Consolas,monospace;overflow:hidden;overscroll-behavior:none} #stage{position:fixed;inset:0;touch-action:none} canvas{width:100%;height:100%;display:block;image-rendering:pixelated;background:#000} #hud{position:fixed;left:0;right:0;top:env(safe-area-inset-top,0px);padding:8px 12px;display:flex;gap:10px;align-items:center;pointer-events:none;color:#fff;text-shadow:0 1px 3px #000;font-weight:700} #hpw{width:34%;max-width:200px;height:12px;border:1px solid #fff;border-radius:3px;overflow:hidden;background:rgba(0,0,0,.5)} #hp{height:100%;width:100%;background:#4cd964} #sc{margin-left:auto;text-align:right} #inf{position:fixed;right:calc(130px + env(safe-area-inset-right,0px));bottom:calc(30px + env(safe-area-inset-bottom,0px));color:#fff;text-shadow:0 1px 3px #000;font-weight:800;font-size:15px;text-align:right;pointer-events:none} #msg{position:fixed;left:0;right:0;top:22%;text-align:center;color:#ffd24a;font-weight:800;font-size:16px;text-shadow:0 2px 4px #000;pointer-events:none} #cross{position:fixed;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;pointer-events:none} #cross::before,#cross::after{content:"";position:absolute;background:#fff;opacity:.9} #cross::before{left:8px;top:0;width:2px;height:18px} #cross::after{top:8px;left:0;height:2px;width:18px} .b{position:fixed;border-radius:50%;border:3px solid var(--pri);background:rgba(255,179,0,.22);color:#fff;font:800 12px ui-monospace,Menlo,monospace;touch-action:none} .b:active{background:rgba(255,179,0,.6)} #fire{right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));width:96px;height:96px;font-size:15px} #swap{right:calc(124px + env(safe-area-inset-right,0px));bottom:calc(64px + env(safe-area-inset-bottom,0px));width:58px;height:58px} #rel{right:calc(30px + env(safe-area-inset-right,0px));bottom:calc(130px + env(safe-area-inset-bottom,0px));width:58px;height:58px} #stick{display:none;position:fixed;width:100px;height:100px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:rgba(255,255,255,.08);pointer-events:none} #knob{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(255,255,255,.55)} #ov{position:fixed;inset:0;background:var(--ov);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:10px;z-index:10} #ov h1{margin:0;font-size:28px;color:var(--pri)} #ov p{margin:0;max-width:360px;color:var(--mut)} #go{margin-top:10px;padding:16px 38px;border:0;border-radius:8px;background:var(--pri);color:var(--pinv);font:800 16px ui-monospace,Menlo,monospace} .hide{display:none!important} </style> </head> <body> <div id="stage"> <canvas id="c"></canvas> <div id="cross"></div> <div id="hud"><div id="hpw"><div id="hp"></div></div><div id="sc"></div></div> <div id="msg"></div> <div id="inf"></div> <div id="stick"><div id="knob"></div></div> <button class="b" id="rel">ISI</button> <button class="b" id="swap">GANTI</button> <button class="b" id="fire">TEMBAK</button> </div> <div id="ov"> <h1 id="t">ZONA PERANG</h1> <p id="d">Mini battle royale: 10 bot bersenjata, zona aman terus menyempit. Jadilah yang terakhir hidup! Putar HP ke landscape.</p> <p>Kiri: gerak · Kanan: geser untuk menoleh<br>PC: WASD, panah, spasi, 1-2-3 ganti senjata, R isi ulang</p> <button id="go">MULAI</button> </div> <script> (function(){ var $=function(i){return document.getElementById(i)}; var cv=$("c"),g=cv.getContext("2d"); var N=24,M=[],W,H=220,K,plane,zb,mm=document.createElement("canvas"); mm.width=mm.height=N*2; function size(){var a=innerWidth/innerHeight;W=Math.max(140,Math.min(520,Math.round(H*a)));cv.width=W;cv.height=H;zb=new Float32Array(W);plane=Math.max(.5,Math.min(.95,a*.37));K=(W/2)/plane} size();addEventListener("resize",size); function wall(x,y){var r=M[Math.floor(y)];return !r||r[Math.floor(x)]!==0} function gen(){ M=[];for(var y=0;y<N;y++){var r=[];for(var x=0;x<N;x++)r.push(x===0||y===0||x===N-1||y===N-1?1:0);M.push(r)} for(var i=0;i<48;i++){ var bx=(2+Math.random()*(N-5))|0,by=(2+Math.random()*(N-5))|0,bw=1+(Math.random()*3|0),bh=1+(Math.random()*3|0); if(Math.abs(bx-12)<3&&Math.abs(by-12)<3)continue; for(var p=0;p<bw;p++)for(var q=0;q<bh;q++)if(bx+p<N-1&&by+q<N-1)M[by+q][bx+p]=1; } var m=mm.getContext("2d");m.fillStyle="#0a0f1a";m.fillRect(0,0,N*2,N*2);m.fillStyle="#7d8fb0"; for(y=0;y<N;y++)for(x=0;x<N;x++)if(M[y][x])m.fillRect(x*2,y*2,2,2); } function los(x1,y1,x2,y2){var d=Math.hypot(x2-x1,y2-y1),n=Math.ceil(d/.25);for(var i=1;i<n;i++)if(wall(x1+(x2-x1)*i/n,y1+(y2-y1)*i/n))return false;return true} var WP=[{n:"PISTOL",d:34,c:.35,m:12,s:0,r:1},{n:"SMG",d:15,c:.09,m:30,s:0,r:1.3},{n:"SHOTGUN",d:80,c:.8,m:5,s:1,r:1.7}]; var COL=[[235,60,75],[240,140,40],[170,80,230],[60,200,120]]; var px,py,a,hp,en,items,wi,ammo,rl,gt,kills,zr,zx=12,zy=12,run=false,loopOn=false,cd=0,flash=0,hurt=0,bob=0,lookDX=0,jx=0,jy=0,firing=false,keys={},last=0,msgT=0; function cell(minP){for(var t=0;t<300;t++){var x=1.5+Math.random()*(N-3),y=1.5+Math.random()*(N-3);if(!wall(x,y)&&!wall(x+.4,y)&&!wall(x-.4,y)&&!wall(x,y+.4)&&!wall(x,y-.4)&&Math.hypot(x-px,y-py)>=minP)return[x,y]}return[12.5,12.5]} function say(t){$("msg").textContent=t;msgT=1.5} function reset(){ gen();px=py=12;var c=cell(0);px=c[0];py=c[1];a=Math.atan2(12-py,12-px); hp=100;wi=0;ammo=[12,30,5];rl=0;gt=0;kills=0;zr=17;cd=0;hurt=0;en=[];items=[]; for(var i=0;i<10;i++){c=cell(7);en.push({x:c[0],y:c[1],hp:100,fl:0,t:1+Math.random(),id:i})} for(i=0;i<7;i++){c=cell(2);items.push({x:c[0],y:c[1]})} say("Bertahan hidup di dalam zona!"); } function tf(e){var dx=Math.cos(a),dy=Math.sin(a),pX=-dy*plane,pY=dx*plane,rx=e.x-px,ry=e.y-py,inv=1/(pX*dy-dx*pY);return{x:inv*(dy*rx-dx*ry),y:inv*(-pY*rx+pX*ry)}} function hitBot(e,d){e.hp-=d;e.fl=.1;if(e.hp<=0){en.splice(en.indexOf(e),1);kills++;say("BOT TERKALAHKAN +1")}} function reload(){var w=WP[wi];if(rl>0||ammo[wi]>=w.m)return;rl=w.r;say("ISI ULANG...")} function swap(n){wi=n%WP.length;rl=0;cd=.2} function shoot(){ var w=WP[wi];if(rl>0||cd>0)return; if(ammo[wi]<=0){reload();return} ammo[wi]--;cd=w.c;flash=.06; var c=[]; en.forEach(function(e){var t=tf(e);if(t.y<.2)return;var lat=Math.abs(t.x)*plane; var ok=w.s?(lat<.35+t.y*.14&&t.y<8):lat<.3; if(ok&&los(px,py,e.x,e.y))c.push({e:e,y:t.y})}); if(!w.s){c.sort(function(p,q){return p.y-q.y});c=c.slice(0,1)} c.forEach(function(o){hitBot(o.e,w.s?w.d*Math.max(.3,1-o.y/8):w.d)}); if(ammo[wi]<=0)reload(); } function update(dt){ gt+=dt;zr=Math.max(3,17-Math.max(0,gt-20)*.1); var turn=(keys.ArrowRight||keys.e?1:0)-(keys.ArrowLeft||keys.q?1:0); a+=turn*2.2*dt+lookDX*.006;lookDX=0; var f=(keys.w||keys.ArrowUp?1:0)-(keys.s||keys.ArrowDown?1:0)-jy,sd=(keys.d?1:0)-(keys.a_?1:0)+jx; var m=Math.hypot(f,sd);if(m>1){f/=m;sd/=m} var dx=Math.cos(a),dy=Math.sin(a),sp=3.2*dt,vx=(dx*f-dy*sd)*sp,vy=(dy*f+dx*sd)*sp,r=.22; if(!wall(px+vx+(vx>0?r:-r),py))px+=vx; if(!wall(px,py+vy+(vy>0?r:-r)))py+=vy; if(m>0)bob+=dt*9; cd-=dt;flash-=dt;hurt=Math.max(0,hurt-dt); if(rl>0){rl-=dt;if(rl<=0)ammo[wi]=WP[wi].m} if((firing||keys[" "])&&cd<=0)shoot(); if(Math.hypot(px-zx,py-zy)>zr){hp-=5*dt;say("DI LUAR ZONA! MASUK LINGKARAN")} en.forEach(function(e){ var ex=px-e.x,ey=py-e.y,d=Math.hypot(ex,ey),seen=d<10&&los(e.x,e.y,px,py),tx=px,ty=py,dz=Math.hypot(e.x-zx,e.y-zy); e.fl=Math.max(0,e.fl-dt); if(dz>zr-1){tx=zx;ty=zy} var mx=tx-e.x,my=ty-e.y,md=Math.hypot(mx,my)||1,s=1.4*dt; if(tx===px){if(seen&&d<4.5){mx=-ey;my=ex;md=d||1;if(e.id%2)s=-s}else if(d<1.3)s=0} var bx=mx/md*s,by=my/md*s; if(!wall(e.x+bx,e.y))e.x+=bx;if(!wall(e.x,e.y+by))e.y+=by; if(dz>zr)e.hp-=4*dt; e.t-=dt; if(seen&&e.t<=0){e.t=.7+Math.random()*.8;if(Math.random()<Math.max(.2,.65-d*.05)){hp-=7;hurt=.3}} }); en=en.filter(function(e){return e.hp>0}); items=items.filter(function(it){if(hp<100&&Math.hypot(px-it.x,py-it.y)<.6){hp=Math.min(100,hp+40);say("+40 ENERGI");return false}return true}); if(msgT>0){msgT-=dt;if(msgT<=0)$("msg").textContent=""} if(hp<=0)end(false);else if(!en.length)end(true); } function render(){ g.fillStyle="#7da4d0";g.fillRect(0,0,W,H/2); g.fillStyle="#4a5a3a";g.fillRect(0,H/2,W,H/2); var dx=Math.cos(a),dy=Math.sin(a),pX=-dy*plane,pY=dx*plane,TC=[[170,150,110],[130,140,150],[160,115,90]]; for(var x=0;x<W;x++){ var cx=2*x/W-1,rx=dx+pX*cx,ry=dy+pY*cx,mx=Math.floor(px),my=Math.floor(py),ddx=Math.abs(1/rx),ddy=Math.abs(1/ry),sx,sy,sdx,sdy,side=0; if(rx<0){sx=-1;sdx=(px-mx)*ddx}else{sx=1;sdx=(mx+1-px)*ddx} if(ry<0){sy=-1;sdy=(py-my)*ddy}else{sy=1;sdy=(my+1-py)*ddy} for(var n=0;n<60;n++){if(sdx<sdy){sdx+=ddx;mx+=sx;side=0}else{sdy+=ddy;my+=sy;side=1}if(wall(mx,my))break} var pd=side?sdy-ddy:sdx-ddx;if(!(pd>.05))pd=.05;zb[x]=pd; var wx=side?px+pd*rx:py+pd*ry;wx-=Math.floor(wx); var h=K/pd,sh=Math.max(.15,1-pd/14)*(side?.75:1),c=TC[(mx*7+my*13)%3]; if((wx*4)%1<.05)sh*=.65; g.fillStyle="rgb("+(c[0]*sh|0)+","+(c[1]*sh|0)+","+(c[2]*sh|0)+")"; g.fillRect(x,H/2-h/2,1,h); } var sp=[]; en.forEach(function(e){var t=tf(e);if(t.y>.15)sp.push({o:e,x:t.x,y:t.y,b:1})}); items.forEach(function(e){var t=tf(e);if(t.y>.15)sp.push({o:e,x:t.x,y:t.y,b:0})}); sp.sort(function(p,q){return q.y-p.y}).forEach(function(s){ var sc=W/2*(1+s.x/s.y),k=Math.max(.3,1-s.y/12),w,h,top,c0,c1; if(s.b){w=K*.55/s.y;h=K*.8/s.y;top=H/2-K*.3/s.y}else{w=K*.3/s.y;h=K*.22/s.y;top=H/2+K*.5/s.y-h} var x0=sc-w/2,col=COL[(s.o.id||0)%4]; for(var c=Math.max(0,Math.floor(x0));c<=Math.min(W-1,Math.floor(x0+w));c++){ if(s.y>=zb[c])continue; var u=(c-x0)/w; if(!s.b){g.fillStyle=(u>.4&&u<.6)?"#fff":"rgb(40,"+(200*k|0)+",90)";g.fillRect(c,top,1,h);continue} g.fillStyle=s.o.fl>0?"#fff":"rgb("+(col[0]*k|0)+","+(col[1]*k|0)+","+(col[2]*k|0)+")"; g.fillRect(c,top+h*.32,1,h*.68); if(u>.22&&u<.78){g.fillRect(c,top,1,h*.34)} if((u>.3&&u<.43)||(u>.57&&u<.7)){g.fillStyle="#fff";g.fillRect(c,top+h*.12,1,Math.max(1,h*.07))} } }); var gx=W/2+Math.sin(bob)*4,gy=Math.abs(Math.cos(bob))*3+(flash>0?4:0)+(rl>0?16:0),sw=wi===2?22:wi===1?14:10; g.fillStyle="#222c3f";g.fillRect(gx-sw,H-34+gy,sw*2,34); g.fillStyle="#3a4b6b";g.fillRect(gx-sw/2,H-(wi===2?58:52)+gy,sw,24); if(flash>0){g.fillStyle="#ffd400";g.beginPath();g.arc(gx,H-56+gy,wi===2?13:9,0,6.3);g.fill()} var out=Math.hypot(px-zx,py-zy)>zr; if(out){g.fillStyle="rgba(130,0,210,.2)";g.fillRect(0,0,W,H)} if(hurt>0){g.fillStyle="rgba(255,40,70,"+Math.min(.45,hurt*1.5)+")";g.fillRect(0,0,W,H)} var mx0=4,my0=28; g.globalAlpha=.8;g.drawImage(mm,mx0,my0);g.globalAlpha=1; g.save();g.beginPath();g.rect(mx0,my0,N*2,N*2);g.clip(); g.strokeStyle="#6cf";g.lineWidth=1;g.beginPath();g.arc(mx0+zx*2,my0+zy*2,zr*2,0,6.3);g.stroke(); g.fillStyle="#f44";en.forEach(function(e){g.fillRect(mx0+e.x*2-1,my0+e.y*2-1,2,2)}); g.fillStyle="#fff";g.fillRect(mx0+px*2-1.5,my0+py*2-1.5,3,3); g.strokeStyle="#fff";g.beginPath();g.moveTo(mx0+px*2,my0+py*2);g.lineTo(mx0+px*2+dx*5,my0+py*2+dy*5);g.stroke(); g.restore(); $("hp").style.width=Math.max(0,hp)+"%"; $("hp").style.background=hp>50?"#4cd964":hp>25?"#ffc400":"#ff4d6d"; $("sc").textContent="SISA "+(en.length+1)+" · KILL "+kills; $("inf").textContent=WP[wi].n+" "+(rl>0?"ISI ULANG":ammo[wi]+"/"+WP[wi].m); } function loop(t){ if(!run){loopOn=false;return} var dt=Math.min(.05,(t-last)/1000||0);last=t; update(dt);if(run)render(); requestAnimationFrame(loop); } function start(){ reset();run=true;$("ov").classList.add("hide");last=performance.now(); if(!loopOn){loopOn=true;requestAnimationFrame(loop)} } function end(win){ run=false;firing=false;jx=jy=0;$("msg").textContent=""; $("t").textContent=win?"JUARA #1!":"KAMU KALAH"; $("d").textContent=win?"Kamu bertahan paling akhir dengan "+kills+" kill. Mantap!":"Peringkat #"+(en.length+1)+" dengan "+kills+" kill. Coba lagi!"; $("go").textContent="MAIN LAGI";$("ov").classList.remove("hide"); } $("go").onclick=start; var st=$("stage"),stick=$("stick"),knob=$("knob"),jid=null,lid=null,jox=0,joy=0,llx=0; st.addEventListener("pointerdown",function(e){ if(e.target.classList.contains("b"))return; if(e.pointerType==="touch"&&e.clientX<innerWidth*.45&&jid===null){ jid=e.pointerId;jox=e.clientX;joy=e.clientY; stick.style.display="block";stick.style.left=(jox-50)+"px";stick.style.top=(joy-50)+"px";knob.style.transform="translate(0,0)"; }else if(lid===null){lid=e.pointerId;llx=e.clientX} try{st.setPointerCapture(e.pointerId)}catch(x){} }); st.addEventListener("pointermove",function(e){ if(e.pointerId===jid){ var dx=e.clientX-jox,dy=e.clientY-joy,d=Math.hypot(dx,dy),m=Math.min(d,50); if(d>0){dx=dx/d*m;dy=dy/d*m} jx=dx/50;jy=dy/50;knob.style.transform="translate("+dx+"px,"+dy+"px)"; }else if(e.pointerId===lid){lookDX+=e.clientX-llx;llx=e.clientX} }); function up(e){if(e.pointerId===jid){jid=null;jx=jy=0;stick.style.display="none"}if(e.pointerId===lid)lid=null} st.addEventListener("pointerup",up);st.addEventListener("pointercancel",up); var fb=$("fire"); fb.addEventListener("pointerdown",function(e){e.preventDefault();firing=true}); ["pointerup","pointerleave","pointercancel"].forEach(function(n){fb.addEventListener(n,function(){firing=false})}); $("swap").addEventListener("pointerdown",function(e){e.preventDefault();swap(wi+1)}); $("rel").addEventListener("pointerdown",function(e){e.preventDefault();reload()}); addEventListener("keydown",function(e){ var k=e.key.length===1?e.key.toLowerCase():e.key;if(k==="a")k="a_";keys[k]=true; if(run){if(k==="1")swap(0);if(k==="2")swap(1);if(k==="3")swap(2);if(k==="r")reload()} if(k===" "||k.indexOf("Arrow")===0)e.preventDefault(); }); addEventListener("keyup",function(e){var k=e.key.length===1?e.key.toLowerCase():e.key;if(k==="a")k="a_";keys[k]=false}); document.addEventListener("contextmenu",function(e){e.preventDefault()}); })(); </script> </body> </html>
Landing Page
This ad does not have a landing page available
Network Timeline
Performance Summary

1

Requests

1

Domains

15KB

Transfer Size

15KB

Content Size

130.0ms

Dom Content Loaded

240.0ms

First Paint

130.0ms

Load Time
Domain Breakdown
Transfer Size (bytes)
Loading...
Content Size (bytes)
Loading...
Header Size (bytes)
Loading...
Requests
Loading...
Timings (ms)
Loading...
Total Time
Loading...
Content Breakdown
Transfer Size (bytes)
Loading...
Content Size (bytes)
Loading...
Header Size (bytes)
Loading...
Requests
Loading...