Avoid touching the deathly walls. Walls are moving but you can toggle directions using fire button.

A game in 548 characters of code for TweetTweetJam 5


This game was made for #TweetTweetJam and contains only 548 characters of code, including art. The code is below:

_set_fps(60)pal(7,13,1)h,z=0,btn::s::g,t,r,x,y,m,s,p=pget,0,.02,64,96,120,0,{}
for i=1,m do
a=""
for j=1,8 do
if rnd()<.6 then
a=a.."    "
else
a=a.."██"
end
end
v=10+rnd(10)
if(i%2>0)v=-v
p[i]={a,v}end::_::cls()t+=r
if(z(0))x-=.5
if(z(1))x+=.5
if(z(2))y+=.5
if(z(3) and y>96)y-=1
if(btnp(4))r=-r
x=mid(x,m)for i=1,#p do
q=p[i]a,b,c=q[1],(t*q[2])%128,y-8*i
if mid(-3,c,131)==c then
?a,b-128,c,5+(i%6)
?a,b,c
end
end
if(g(x,m)+g(x+6,m)+g(x,m+4)+g(x+6,m+4)>0)h=max(s,h)goto s
?"😐",x,m,12
s=max(s,flr((y-96)/8))
?"s: "..s.." h: "..h,0,0,6
flip()goto _
StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorSkyBerron
GenreAction
Made withPICO-8
TagsPICO-8, tweettweetjam

Comments

Log in with itch.io to leave a comment.

Very cool, like infinite Frogger. The ability to switch directions is an interesting addition. I do kind of wish that the player 'hopped' like Frogger though because the margins are so tight for smooth movement.

Thanks. Another game that ends up much more difficult than I intended. I tested on keyboard and I thought difficulty was ok, but when I later played on gamepad I realiced it was almost impossible.