NanoStack
NanoStack - a stacking game in 540 chars for TweetTweetJam 7!
Press Z/X to stack. Ctrl+R to Reset. What's the highest level you can get to?
I set myself an extra challenge to not minify the code beyond using short variable names. 540 chars of Lua for the TIC-80 Fantasy console:
t=0 x=0 w=30 c=1 s=0.5 u={} v={} function TIC() cls(10) rect(0,126,240,10,14) for i=1,#u do for j=1,8 do rect(u[i]+j*3,126-i*10,70-(i*5)-j*6,10,17-j) end end for j=1,8 do rect(x%240+j*3,126-c*10,70-(c*5)-j*6,10,17-j) end if btnp()>0 then t=0 for i=x%240,x%240+70-(c*5) do if pix(i,126-c*10+10)~=10 then t=1 end end if t==0 and c>1 then u={} c=1 x=0 else u[c]=x%240 c=c+1 x=0 end end if c==13 then u={} c=1 x=0 s=s+0.5 end print("Level "..math.floor(s/0.5)) x=x+s t=t+1 end
Leave a comment
Log in with itch.io to leave a comment.