catch
Use your mouse to avoid the thingy to go out of the grey square. Accumulate point by resisting more and more time, but beware: IT GET FASTER!
Just a simple toy in 651 bytes of html and js, enjoy!
Source:
<body bgcolor=#000 text=#fff>Stop it from exiting, use the mouse
<canvas id=c><script> w=c.width=300;h=c.height=300; m=Math;r=20;f=`hsl(${Math.random()*360},100%,75%)`;b='#222';s=1.5;d=z=S=0; X=x=Y=y=150;R=c.getBoundingClientRect();c=c.getContext('2d'); c.font='30px serif';onmousemove=e=>{z=e;}; t=setInterval(()=>{with(c){ if(S%99==0)s+=.1;S++; fillStyle=b+'3';fillRect(0,0,w,h);fillStyle=f;fillRect(x,y,4,4); x=x+m.cos(d)*s;y=y+m.sin(d)*s;d+=m.random()*.8-.4; X=x-z.x+R.left+r/2,Y=y-z.y+R.top+r/2; if(X*X+Y*Y<r*r)d=m.atan2(Y,X); if(x<0||x>w||y<0||y>h)clearInterval(t),fillStyle=f,fillText(`Score: `+S,9,60); }},16); </script>
Published | 9 hours ago |
Status | Released |
Platforms | HTML5 |
Author | Luca Giacometti |
Genre | Action |
Tags | beat-the-score, catch, challenge, Fast-Paced, reflex, Simple, toy |
Leave a comment
Log in with itch.io to leave a comment.