Tweetgario
Agario demake that fits in two tweets! Move with the arrow keys, you control the dot in the center. Move on top of smaller dots to eat them and become larger but slower, and don't get eaten yourself! The game resets when any dot's radius exceeds 64 pixels. This game was made for the TweetTweet Jam, in which contestants make a game with code that fits entirely in two tweets. I made the game using PICO-8, just copy the source code below into your PICO-8 editor and the game will run with no outside assets.
p={}l=64x=61y=l::_::b=btn()r=rnd cls(7)a=all if(#p<4)add(p,{x=0,y=0,s=9}) z=(b\2%2-b%2)/p[1].s*3w=(b\8%2-b\4%2)/p[1].s*3if(p[1].x==0)x-=z y-=w for n in a(p)do if(n.s>l)run() if n!=p[1]then if n.s==9then n.s=r(10)+2c=1v=1if(r(2)<1)c=-1 if(t)v=-1 n.x=c*l n.y=v*l end while n.t==nil do for m in a(p)do t=r(2)<1if(t and m!=n)n.t=m end end n.x-=z+sgn(n.x-n.t.x)/n.s*3n.y-=w+sgn(n.y-n.t.y)/n.s*3end circfill(n.x+l,n.y+l,n.s,8)for m in a(p)do if(sqrt((m.x-n.x)*(m.x-n.x)+(m.y-n.y)*(m.y-n.y))<n.s+m.s and m.s>n.s)m.s+=n.s n.t=nil del(p,n)end end?"⌂",x,y,6 flip()goto _
Status | Released |
Platforms | HTML5 |
Author | galactical |
Made with | PICO-8 |
Tags | PICO-8 |
Comments
Log in with itch.io to leave a comment.
really cool experiment
Thanks! : )