



About This Game
The
Deluxe Edition
is out! Including no-timer mode, daily mode, gravity modes, and 35+ wild others.
Select numbers that add to ten, to remove them from the board. How high can you score in just 2 minutes? Try again by pressing Enter!
An homage to
Fruit Box
. A FruitBox-like? There are some big differences in this version, the most obvious being the lack of music -- the music in the original is incredible.
> how to play
Drag your mouse to select groups of numbers that
add up to 10
.
Press Enter to pause. (
restart
/ change volume)
Click the bottom-right icon to play in fullscreen. (it's easier to click on larger numbers)
In the original game, you're awarded one point per number removed,
Get the highest score you can within 2 minutes. Good luck!
> code
This was made for
a jam
with a code-size restriction: 500 characters or less. Here's the entire source code:
z={}c=-8s=0g='â¶!5f58âµd8"'::_::?"â¶1â¶c0â¶!5f2d3"
e=1x=stat(32)y=stat(33)if btn(5)do f=mid(16,96,y)if(p==a)p=x q=f?"â·i6v1c1"
ð=c&min(x,p)â=c&min(f,q)âª=c&max(x,p)â¥=c&max(f,q)else if(p)p=a if(n==c)e=0?"â·i7f1a"
end?g,d
n=2for i=32,207do w=z[i]or rnd(9)\1+1u=i%16*8v=c&i\2if(u-ð|âª-u|v-â|â¥-v>0)w*=e n-=w ⬠ï¸+=â¡ï¸&~e
z[i]=w?w,u,v,w
end?"â¶jc1score "..s,-ð ¾ï¸
if(btnp(6))ð ¾ï¸=â¬ï¸
if(p)rect(ð,â,âª+9,â¥+8)
d=-t()?"â¶x2¹bâ",d-5,106
if(d==-128)â¡ï¸=0g="â¶j8rtime up!"â¬ï¸=ð ¾ï¸?"â·v3fg"
if(s<⬠ï¸)s+=1?"â·x5v3c0"
?"â¶.¹³â·á¶ ³â´\0\0",x-2,y-2,7
goto _
Some highlights:
check if a number is inside the selection region with
if(x-cx0|cx1-x|y-cy0|cy1-y>0)
(checking that each term isn't negative)
draw the timer using cursed
P8SCII
?"â¶x2¹bâ"
instead of
rectfill()
, saving 3 chars
instead of counting up from 0 to 10, count down from 2 to -8, saving 1 character
some tricky whole-program structure that sums numbers using the same line of code that removes them (one frame later)