patches
An interactive quilt for TTJ10, made in <500 chars of code.
More toy than game; think of it as a jigsaw puzzle, if you like.
> controls
Left click to pick up a patch, left click again to drop it.
> code
f={}e={}for e=0,221do d=16+rnd(240)\1f[e]=16+rnd(240)\1|d-tonum(d%17<1)<<8f[e+221]=f[e]end
for d=0,441do e[d]=del(f,rnd(f))end?"⁶!5f36@"
::▒::p=fillp?"⁶1⁶!5f58■f⁶\0◝"
▒^^=-1p(▒)rectfill(0,0,127,127,0)p()a=stat(32)n=stat(33)c=(a-1)\6l=(n-1)\6o=c+l*21if l\21|c\21==0and btnp()>9do
if ⬅️==e[o]do if(⬅️~=0)e[o]=0⬅️=0?"⁷i6x4d"
else e[o],⬅️=⬅️,e[o]?"⁷i6c0"
end end for f=0,440do x=f%21i=f\21if(abs(x-10)~abs(i-10)<t()*7)?chr(e[f]),x*6+1,i*6+1,e[f]>>8
end?"⁶-#⁵fe○⁶!5f2d3",a,n,7
?"⁵ee"..chr(⬅️),a,n,⬅️>>8
goto ▒
> code highlights
- each patch stores its glyph and both colors inside a single number, which is drawn with
?chr(packed),x,y,packed>>8
. background-drawing needs to be enabled for this:poke(0x5f58,0x11)
- opening animation with XOR:
if(abs(x-10)~abs(y-10)<t()*7) --draw
- shuffle a list by pulling elements out at random:
list2[i]=del(list1,rnd(list1))
- multiple tiny tricks from my other projects, like inbounds-checking from bubblecat and fancy-cls from ghost patrol. thanks past-me for writing these summaries!
Published | 23 days ago |
Status | Released |
Platforms | HTML5 |
Rating | Rated 4.9 out of 5 stars (9 total ratings) |
Author | pancelor |
Genre | Puzzle |
Made with | PICO-8, Sublime Text |
Tags | jigsaw, match, No AI, PICO-8, Pixel Art, quilt, Tilemap, tweettweetjam |
Average session | About a half-hour |
Inputs | Mouse, Touchscreen |
Accessibility | One button, Textless |
Links | BBS |
Download
Download
patches.p8.png 13 kB
Version 4 23 days ago
Comments
Log in with itch.io to leave a comment.
Nice game. Instructions would be good, so you know you have to drop the matching rectangle on its counterpart.
And at some point upgrades would be nice, such as: push all rectangles together in the center of the screen or sort by background or whatever.
I kinda like the lack of instructions. It makes it that much more rewarding when you figure it out :P besides, people in the comments made it obvious enough..
Jelpi! 😀
(You have more patience that I do, bravo👏)
its not enough
WAIT YOU CAN MATCH THEM?!?!
😍
10/10 this is definitely a quilt
O.O
Really, Pancelor! Really!
It’s true!