Play Fidget Toy
Twyruss's itch.io pageHow many characters of code did you use?
555
Include your code here, if you'd like to show it off!
h={8,10,11,12} f={} s=5 t=0 i=0 j=1 function _init() end function _update() if btn(⬅️) then i+=.025 if(i>1)i=0 elseif btn(➡️) then i-=.025 if(i<0)i=1 end if btnp(🅾️) then j-=1 if(j<1)j=4 elseif btnp(❎) then j+=1 if(j>4)j=1 end if t==0 then t=30 add(f,{a=rnd(1),c=flr(rnd(4)+1)}) else t-=1 end foreach(f,c) end function c(e) if(abs(e.a-i)<0.05 and e.c==j)del(f,e) end function _draw() r=20 v=h[j] cls() circ(64,64,r,7) circfill(64,64,5,v) circfill(64+r*cos(i),64+r*sin(i),3,v) foreach(f,d) end function d(e) circfill(64+r*cos(e.a),64+r*sin(e.a),2,h[e.c]) end
Leave a comment
Log in with itch.io to leave a comment.