Skip to main content

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

TEMPRES.P8View game page

a puzzle, at first
Submitted by Tobias V. Langhoff (@Spug) — 5 days, 4 hours before the deadline
Add to collection

Play tweetcart

TEMPRES.P8's itch.io page

How many characters did you use?
257

Include your code here, if you'd like to show it off!
pal(2,129,1)a={}::_::cls(1) if(btnp(5))w=t()add(a,#a>0 and w-v or 0)v=w if(#a>1 and a[#a]<=a[#a-1]or#a>10)a={} if#a>9then ?a[#a],16,10 end for x=1,10 do rectfill(6+x*10,#a>9 and 98-(a[x]/a[#a])*70or 56,9+x*10,#a>9 and 100or 72,a[x]and 7or 2)end flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted(+1)

Nice!  A classic to be sure.

Developer (2 edits)

Note that the itch version includes mouse handling, but that only comes out to 311 characters total:

poke(24365,1)pal(2,129,1)a={}::_::cls(1)f=stat(34)==1m=f!=o and f or nil
o=f
if(btnp(5)or m)w=t()add(a,#a>0 and w-v or 0)v=w
if(#a>1 and a[#a]<=a[#a-1]or#a>10)a={}
if#a>9then
?a[#a],16,10
end
for x=1,10 do
rectfill(6+x*10,#a>9 and 98-(a[x]/a[#a])*70or 56,9+x*10,#a>9 and 100or 72,a[x]and 7or 2)end
flip()goto _

I just thought I'd remove that and cram it into a single tweet when I saw that would be achievable.