A stacker game I made in 560 characters for TweetTweetJam 3 

The goal is to stack platforms on top of each other without any overlap. Press X to stack, and Z to restart when you fail.

Code (560 chars):

y={0,64,128,128}b={y}x=0 t=0 w=64 g=1 h=0 r=rectfill::d::cls(0)t+=0.005
x=64-w/2+sin(t)*64
p={x,64,x+w,71}if g==1 then
l=b[#b]
if(p[1]>l[1])a=p[1]else a=l[1]
if(p[3]<l[3])u=p[3]else u=l[3]
if(u<a)u=a
v={a,p[2],u,p[4]}r(p[1],p[2],p[3],p[4])
if(w==0)g=0
if(btnp(❎))then
w=u-a if(u-a>0)add(b,v)end
end
i=0
for c in all(b)do
i+=1
r(c[1],c[2]-8*i+8*#b+8,c[3],c[4]-8*i+8*#b+8,1+(5+i)%15)end
if(#b-1>h)h=#b-1
color(1+(6+i)%15)
?"high:  "..h
?"score: "..#b-1
if(g==0)then
color(7)
?"game over"
?"🅾️ to restart"
if(btnp(🅾️))g=1 b={y} w=64
else
?"stacker"
end
flip()goto d


Published 27 days ago
StatusReleased
PlatformsHTML5
Rating
(2)
AuthorBrastin
GenrePuzzle
Made withPICO-8
Tags2D, Arcade, PICO-8, Pixel Art, stacker

Comments

Log in with itch.io to leave a comment.

(+1)

Very simple and surprisingly fun. Nice work!

(+1)

Great idea! It plays really well, doesn't feel like like it's had to be reduced in any way in order to fit the character limit. Well done!

(+1)

This made me realize how humans really fail to repeat the same thing the exact same way we did earlier... And that's frightening since computers will not have any hard time to break records on this game!