Wac-Man Ate Too Much!
About
Made for TweetTweetJam 6. @Pancelor got it down to 515 chars. THANKS!
WAC-MAN ATE TOO MUCH!
Wac-Man ate so much he got a little tubby -- too tubby to fit through the hallways of his maze. So the dots feel obligated to fulfill their duty and go to him. Hope he can eat them fast enough!
Arrows to face up, down, left, right to eat.
Try to get a high score!
X to restart (since I have too many tokens anyway).
And I added quick sounds for the heckuvit.
Enjoy this primitive game that is pretty small but not small enough. :D
CODE
-------
::b::f=1s=0h=60l=9d={[0]=0,0,-1,1,0,0}e={}r=rectfill
c=circfill::z::l=(l-1)%h
if(l==0)h=max(16,h-2)g=rnd(4)\1k=-mid(1,s/50,3)u=d[g+2] v=d[g]add(e,{x=64+64*u,y=64+64*v,f=g,u=u*k,v=v*k})
for b=0,3do
if(btn(b))f=b
end
?"\^1\^c1"
?s,1,1,7
r(41,0,86,127,0)r(0,41,127,86,0)c(64,64,32,10)c(64+32*d[f+2],64+32*d[f],16,0)
for i in all(e)do
i.x+=i.u i.y+=i.v
?"●",i.x-3,i.y-2,9
if abs(i.x-64)<18 and abs(i.y-64)<18then
if(f~=i.f)sfx(1)goto g
del(e,i)s+=10sfx(0)
end
end
goto z::g::
?"died\n ❎",56,58,1
if(btn(5))goto b
goto g