Play game
fishy's itch.io pageHow many characters of code did you use?
555
Include your code here, if you'd like to show it off!
l=1poke2(12800,582)r=rnd::t::q=""g=128h=1.5f={64,64,h,0}for i=5,g,4do
f[i]=r(g)f[i+1]=r(g)f[i+2]=r(2+l/4)f[i+3]=r(3)-1end::b::cls(1)u=0for i=1,#f,4do
x=f[i]+f[i+3]if i<2then
b=btn()x+=b\2%2-b%2f[i+1]+=b\8%2-b\4%2end
f[i]=x%g
y=f[i+1]s=f[i+2]u+=s
for j=i+4,#f,4do
w=f[j+2]e=s+w
if e>abs(x-f[j])and e>abs(y-f[j+1])then
k=j+i
if(s<w)j=i
k-=j
f[j]=j
sfx(0)f[j+1]=-9f[j+2]=0f[k+2]+=w/8if(j<2)q="lose\n ❎"end
end
ovalfill(x-s*h,y-s,x+s*h,y+s,8+i%7+sgn(i-2))end
?l,62,4,7
if(u==f[3])q="win!\n ❎"l+=1
flip()::a::
if(btnp(5))goto t
if(#q<1)goto b
?q,56,64,7
goto a
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet