Driving at night (SkyBerron)
About
A game in 549 characters of code for TweetTweetJam 5
You are driving at night, but something is wrong in your car...
This game was made for #TweetTweetJam and contains only 549 characters of code, including art. The code is below:
_set_fps(60)z,f,m,l,h=mid,120,64,20,0::s::x,y,r,s,t,p=m,110,0,2,0,{}pal(8,0,1)pal(4,1,1)for i=1,31do p[i]={x=4*i,y=0,v=.4+rnd(.3)}end::_::cls()t+=.01 s+=.001r,w=(r-s)%(2*l),flr(t)h=max(h,w)b=btn()x+=(b&2)/2-(b&1)y+=(b&8)/8-(b&4)/4 x,y=z(x,f),z(y,f)poke(0x5f5e,0x11)ovalfill(x-37,y-f,x+43,y+2,1)poke(0x5f5e,0xee)for i=0,5do u=m+l*(i-2.5)for j=0,5do v=2*j*l-r line(u,v,u,v+l,4)end end for i=1,31do q=p[i]q.y=(q.y+s*q.v)%(4*f)v=q.y-3*f ?"❎",q.x,v,8 if(q.x==z(x-6,q.x,x+6)and z(y-2,v,y+2)==v)goto s end ?"⬆️",x,y,2 ?"s:"..w.."\nh:"..h,8,8,15 flip()goto _System requirements for Web
Last Modified: Nov 9, 2020
Where to buy
itch.io