Up and Down arrows to move, collect as many fruits as you can before time runs out!

Code:

--title:Fruit Ring

--author:jb431

--script:lua

e=120 b=btn m=math d=circ q=m.sin z=m.cos p=10v=31o=0n=print sp=load" u=m.random()g=q(u*20)*v+e h=z(u*20)*v+68"j=load"x=0y=0r=0s=0t=1800sp()"j()TIC=load"if b()<3 and b()>0then r=r-1+2*(b()-1)end cls(16)d(e,68,31,4)d(e,68,30,16)x=q(r/p)*v+e y=z(r/p)*v+68 d(x,y,3,3)d(g,h,3,2)rect(g,h-4,3,1,6)if((g-x)^2+(h-y)^2)^.5/1<5then sp()s=s+1sfx(2,30,4,0,10)end n('T-'..t//60,e,3,9)n(s,e,64,6,true)n(o,e,72,8,true)t=t-1if t<0then if s>o then o=s end j()end"

StatusReleased
PlatformsHTML5
Authorjb431
Made withTIC-80
Tags2D, Short

Leave a comment

Log in with itch.io to leave a comment.