Play game
!TweetTweetCart: Bubble Invasion's itch.io pageHow many characters of code did you use?
559
If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
d=0::r::p={}e={}poke(24365,1)f=circ
a=0t=0z=btn
x=64y=80g=pairs::_::cls()c=stat(32)s=stat(33)n,m=c-x,s-y
if(z(0))x-=1
if(z(1))x+=1
if(z(2))y-=1
if(z(3))y+=1
t+=.001w=8/sqrt(n*n+m*m)add(p,{x=x,y=y,v=n*w,b=m*w,t=5})add(e,{x=rnd(128),y=-8,s=3})for u,q in g(e)do
q.s+=t*.1q.y+=t
j,l,k=q.x,q.y,q.s
f(j,l,k)for u,v in g(p)do
if(j+k>v.x and j-k<v.x and l+k>v.y and l-k<v.y)q.s-=1
end
if(k<2)del(e,q)a+=1d=max(a,d)
if(l>150)del(e,q)
end
if(pget(x,y)==6)goto r
for u,v in g(p)do
f(v.x,v.y,2)v.t-=.2
v.x+=v.v
v.y+=v.b
if(v.t<0)del(p,v)
end
?a..","..d
f(x,y)flip()goto _
Leave a comment
Log in with itch.io to leave a comment.