Rally Racing time trial game for Tweettweet jam 2026! Accelerate with `z`, and control with your arrow keys. How fast can you go? My best time is 5.8 seconds.

498-character minified source:

n=99o=35d=0u=0c=0j=rrectfill e=circfill f=64a=t()b=99function _update60()cls(4)j(22,22,356,196,50,5)j(66,66,268,116,30,4)line(99,f,99,23,0)r=cos(c)i=sin(c)g=t()for d=1,99do pset(d*f%400,d*d%300,6)end h=btn()c+=(h%2-h\2%2)/99if(h>15)d+=r*.1u+=i*.1 k=pget(n,o)\5*.17+.8d*=k u*=k n+=d o+=u for d=-1,1,2do e(n+r*d*4,o+i*d*4,4,1)end for d=-1,1do e(n+r*d*4,o+i*d*4-2,4,8)end for d=-1,1do e(n+r*d*2,o+i*d*3-3,3,0)end e(n,o-4,3,8)if(n>99and n-d<99)b=min(b,g-a)a=g camera(n-f,o-f)?g-a.."\n"..b,n-f,o-f,7 end

Commented source:

x=99y=35vx=0vy=0a=0
s=rrectfill
u=circfill
z=64 
start=t() 
best=99  
function _update60()
     -- Draw the track.
     cls(4)
     s(22,22,356,196,50,5)
     s(66,66,268,116,30,4)
     line(99,z,99,23,0)
     f=cos(a)
     g=sin(a)
     now=t()
     
     -- Add texture to the map.
     for k=1,99 do pset(k*z%400, k*k%300, 6) end
     -- Controls.
     b=btn()
     a+=(b%2-b\2%2)/99
     if(b>15) vx+=f*.1 vy+=g*.1
     -- Apply velocity. More drag when off road (color=4) than on road (color=5).
     d=pget(x,y)\5*.17+.8
     vx*=d
     vy*=d     
     x+=vx
     y+=vy
     --- Draw car
     -- Wheels
     for i=-1,1,2do u(x+f*i*4,y+g*i*4,4,1) end
     -- Car body and windshield
     for i=-1,1do u(x+f*i*4,y+g*i*4-2,4,8) end
     for i=-1,1do u(x+f*i*2,y+g*i*3-3,3,0) end
     -- Hood
     u(x,y-4,3,8)
     -- Update best time when the finish line is crossed
     if(x>99 and x-vx<99) best=min(best, now-start)start=now
     -- Center camera on the car, and show times.
     camera(x-z,y-z)
     ?now-start.."\n"..best,x-z,y-z,7
end

Published 13 hours ago
StatusReleased
PlatformsHTML5
Authorsizescape
GenreRacing
Made withPICO-8
ContentNo generative AI was used

Download

Download
tinyrally.p8.png 4.2 kB

Leave a comment

Log in with itch.io to leave a comment.