frog
a game in 549 characters! (less than 2 tweets!)
controls:
- move: arrow keys
- restart: ctrl-r
code:
z={}function _(s,x,y,c,t)add(z,{s=s,x=x,y=y,u=0,v=0,c=c,t=t,e=_𝘦𝘯𝘷})end
_("🐱",8,0,11)p=z[#z]
for y=1,14do _("ˇ",rnd(16)\1,y+1,10)for x=0,15do
if(rnd(99)<50-y)_("█",x,y,4,y%2*8)
end end::_::
?"\^1\^c3"
memset(25024,17,7104)a=p.y%15==0for i=#z,1,-1do
local _𝘦𝘯𝘷=z[i]q=x==e.p.x and y==e.p.y
if c==11then
if e.a then
b=e.btnp()
if(b>0)u=b\2%2-b%2v=b\8%2-b\4%2x+=u y+=v u*=8v*=8
else
c=2end
elseif c==4then
if(q)e.a=1
if(t==0)t=30u=y%2*2-1x=(x+u)%16u*=8
t-=1else
u=e.rnd(2)v=e.rnd(2)
if(q)e.deli(e.z,i)
end
u-=u\2v-=v\2e.print(s,x*8-u,y*8-v,c)
end
goto _
Status | Released |
Platforms | HTML5 |
Author | pancelor |
Genre | Action |
Made with | PICO-8, Sublime Text |
Tags | 2D, Minimalist, PICO-8, Short, sourcecode |
Average session | A few seconds |
Inputs | Keyboard, Gamepad (any), Touchscreen |
Accessibility | Color-blind friendly, High-contrast, Textless |
Comments
Log in with itch.io to leave a comment.