Make Ten

Make Ten

by pancelor

Free
Play on itch.io
Make Ten screenshot 1Make Ten screenshot 2Make Ten screenshot 3Make Ten screenshot 4

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)

Developerpancelor
GenrePuzzle
RatingRated 4.7 out of 5 stars(298total ratings) ((298total ratings))
Platforms🌐 🪟 🍎 🐧