Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

TwafficView game page

truck-dodging microgame in 560chars of source code (for tweettweetjam)
Submitted by icegoat9 (@icegoat9) — 4 days, 55 minutes before the deadline
Add to collection

Play game

Twaffic's itch.io page

How many characters of code did you use?
554

Include your code here, if you'd like to show it off!
p=poke4
p(132,0x2.2222)p(196,0xcc2.2222)p(260,0xc0c2.2228)p(324,0xccc2.2222)p(388,0x606.0606)p(452,0x60.006)
g=1::s::y=123::r::cls()srand(8)
for i=1,g*3do
z=i*33/g+5
l=4+i*3%15
pal(2,rnd(9)+7)
d=i%2*2-1
x=d*t()*(rnd(50)+9)
n=0if(l<8)n=1
for j=0,n do
x=(x+j*99)%155-32
sspr(8,0,8,8,x,z,2*l,8,d<0)
if abs(x+l+4*d-67)<l-1 and abs(z-y+2)<5.5then
?"❎",63,y,8
for i=1,30do flip()end
goto s
end
end
end
b=btnp()y+=3*(b\8%2-b\4%2)
?"twaffic"
?"★ lvl "..g.."/4",63,0,10
?"⬆️",63,y,11
if y<6then g+=1
if(g>4)cls(3)print("win",56,60,7)stop()
goto s
end
flip()goto r

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet