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(btnp(5))p=x q=f?"⁷i6v1c1"
😐=c&min(x,p)⌂=c&min(f,q)♪=c&max(x,p)♥=c&max(f,q)elseif p do 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?"⁶jc1ᶜcscore "..s
if(p)rect(😐,⌂,♪+9,♥+8)
d=128-t()rectfill(-1,107,d,113)if(d==0)➡️=0g="⁶j8rtime up!"?"⁷cg"
if(s<⬅️)s+=1?"⁷x5v2c0"
?"⁶.¹³⁷ᶠ³⁴\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)
  • 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)
  • make changes to the board (both creating and deleting numbers) with a single line of code
Updated 5 days ago
Published 10 days ago
StatusReleased
PlatformsWindows, macOS, Linux, HTML5
Rating
Rated 4.9 out of 5 stars
(14 total ratings)
Authorpancelor
GenreStrategy
Made withPICO-8, Sublime Text
TagsHigh Score, Math, PICO-8, Short, sizecode, sourcecode, Time Attack, tweetcart, tweettweetjam
Average sessionA few minutes
InputsMouse, Touchscreen, Smartphone
AccessibilityColor-blind friendly, High-contrast, Interactive tutorial, Textless
LinksBBS, cohost, mastodon, Source code

Download

Download NowName your own price

Click download now to get access to the following files:

make-ten-windows.zip 1,014 kB
Version 4
make-ten-linux.zip 767 kB
Version 4
make-ten-osx.zip 7 MB
Version 4
make-ten-raspi.zip 2 MB
Version 4
make-ten.p8.png 4 kB
Version 4

Development log

Comments

Log in with itch.io to leave a comment.

(+3)


Fun game

(+2)

Incredibly fun, I played it over 20 times and got up to 203 points!
I can't believe this can be done with 500 lines of code!
And I'm a bad cat who resets if there are too many 9s in the initial placement, nya~.

This is super cool, great job!

(+3)

Significantly better scores are possible, based on RNG and optimal play

there's a hidden endless mode  😄

(1 edit) (+3)

it definitely took a while but my high score is 212!!!

update: 319. i'm INSANE

(+1)

Very cool concept! I was only able to get 33, and only one of those was a square, which was what I was really trying to hunt down.

(+1)

Very cool game. I loved finding more and more patterns and rules as I played and interesting behaviors, like clearing 9+1s in the beginning cause 9s are useless and will get in a way otherwise, but you also sacrifice useful 1s and sometimes it's better not too. And later just seeing combinations and not having to count, just knowing momentarily that 4+4+2 is 10, etc

I noticed a bug: if score counts equals to the size of an area you have selected, not the size of an area that would contain all the numbers. Like, if you have selection with empty space around numbers, you would receive score equal to the size of that empty space if you selected it.

(+3)

Very addicting! It took me a while to break 300.

(2 edits) (+2)

Personal best:


(+1)

Wtf,wow. Congrats!

This is fascinating!  I wasn't familiar with "Fruit Box" and this a wonderful rendition.  I think I actually prefer your simplification and use of color, although the music on "Fruit Box" is great.

(+2)

This is f'n addictive, after achieving my score I could literally see numbers everywhere. Great game, best so far for me. 

(+2)

youve carved out the shape of a bird!

Oh god, you're right :D cute! 🐦 

Very nice simple idea! Sometimes I'll see some numbers grouped together and think "I feel like there's something here that works" and just drag some boxes quick to see if I can get one by feel.

When I saw TweetTweetJam going around I thought of you and wondered if you were making something! Absolutely wacky how compact you manage to make these, I need to get more comfortable with P8 so you can teach me.

(+1)

This is very good. It’s really impressive how much game you squeezed into 500 characters.