Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

Pong RadialView game page

another perspective of regular pong
Submitted by TGY — 4 days, 16 hours before the deadline
Add to collection

Play pong radial

Pong Radial's itch.io page

How many characters of code did you use?
559

Include your code here, if you'd like to show it off!
<canvas id=a height=300><script>c=a.getContext`2d`;x=y=s=150;d=100;j=-1;n=p=0;t=e=>{c.fillStyle=e};r=e=>{c.translate(e,e)};setInterval(e=>{t`black`;c.fillRect(0,0,2*s,2*s);t`white`;j>0&&c.fillText('score:'+j,2,9);r(s);c.rotate(p);c.fillRect(d,-25,9,50);c.rotate(-p);r(-s);c.beginPath();c.arc(x,y,5,0,0.1,1);c.fill();o=Math.atan2(y-s,x-s)-p;h=Math.sqrt((x-s)*(x-s)+(y-s)*(y-s));w=h*Math.sin(o);i=d-h*Math.cos(o);if(w>-25&&w<25&&i<6&&i>=5){n=3.2+p;j++}x+=Math.cos(n);y+=Math.sin(n)},5);ontouchmove=onmousemove=e=>{p=Math.atan2(e.clientY-s,e.clientX-s)}</script>

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet