Play game
Bouncing Faces 500's itch.io pageHow many characters of code did you use?
498
Include your code here, if you'd like to show it off!
_set_fps(60)x=60f=120g=240p={}w={}s=0::_::cls(1)rect(0,126,127,127,3)?s
if(#p<=1+t()\40)add(p,{a=rnd(f),b=0,v=rnd(.5),l=15})
b=btn()x=mid(x+(b&2)/2-(b&1),f)
if(btnp(4)and #w<5)add(w,{x=x,y=f})
for q in all(p)do
q.a+=1q.a%=g
q.b+=q.v+1q.b%=g
a=min(q.a,g-q.a)b=min(q.b,g-q.b)if(abs(a-x)<6and abs(b-f)<4)run()
for r in all(w)do
if(abs(a-r.x)<6and abs(b-r.y)<4)q.l-=1del(w,r)
end?"😐",a,b,10
if(q.l<1)del(p,q)s+=1
end
for r in all(w)do
r.y-=2?"●",r.x,r.y,12
if(r.y<-6)del(w,r)
end?"★",x,f,7
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet