Really satisfying physics and nicely paced.
Play game
Ball Bouncer's itch.io pageHow many characters of code did you use?
500
Include your code here, if you'd like to show it off!
pal(7,14)t,w,c,s,b=0,53,0,0,{}function _draw()
if(t*.25>#b)add(b,{62+rnd(2),30,63,29+rnd(2)*.1,rnd(6)+7})
cls()?"score:"..s,16,2,6
?"time:"..flr(60-t),84,2
if(btnp(5))run()
if(t>=59)print("press ❎ to restart",27,60)return
if(btn(0))w-=5
if(btn(1))w+=5
w=mid(w,99)rectfill(w,121,w+28,124)
t+=1/30 for i=1,#b do x,y,g,h,p,d=unpack(b[i])if d~=1 then
x,y,g,h=x+x-g,y+y-h+.04,x,y if(pget(x,y+2)==6)y,h=h,y;c+=1;s+=c
if(x<2 or x>125)x,g=g,x
if(y>128)d,c=1,0
circfill(x,y,2,p)b[i]={x,y,g,h,p,d}end end end
Leave a comment
Log in with itch.io to leave a comment.