Golfnado Pico
A mini version of my main project, GOLFNADO that fits in under 560 characters!
Use the tornado's rotational force to fling the ball into the hole!
Do this as many times as you can in just 30 seconds!
Controls: Arrow keys to move the tornado
Ctrl + R to restart
For updates and more follow me on Twitter
Made for Tweet Tweet Jam
Source code:
z=circfill y=btn x=rnd v=sin u=cos t=time s=rectfill i=128q=0 a=x(i)b=x(i)c=x(i)d=x(i)e,f=0,0g,h=0,0::j::e=x(i)q+=1f=x(i)::k::cls(3)w=t() ?"@beanborg\nscore: "..q.."\n"..w if(w<30)then if(y(0))c-=2 if(y(1))c+=2 if(y(2))d-=2 if(y(3))d+=2 else ?"game over",50,64,1 end n=c-a o=d-b m=atan2(n,o)m-=.6n*=n o*=o p=sqrt(n+o)/5if(p<3)then g-=v(m)/p h+=u(m)/p end z(a,b,1,7)a+=g*2b+=h*2g*=.9h*=.9a%=i b%=i c%=i d%=i if(abs(e-a)<5 and abs(f-b)<5)goto j z(e,f,3,0)s(e,f,e,f-15,6)s(e+1,f-15,e+4,f-11,8)z(a,b,2,7)z(c+v(w*2),d+u(w*2),3,6)z(c,d,3,5)flip()goto k
Leave a comment
Log in with itch.io to leave a comment.