The kids and I had a blast playing Baba is You thi...
# devlog-together
k
The kids and I had a blast playing Baba is You this morning, and it brought up ancient memories of playing Sokoban puzzles (where all you can do push crates around; in particular no pulling). Now I want to play Sokoban on my phone. https://lcamtuf.coredump.cx/sir-box-a-lot contains 300 publicly available Sokoban puzzles. It turns out the C syntax that those puzzles are encoded in is just a few search-and-replaces from being perfectly valid and usable Lua. So far I can render the starting state.
❤️ 4
🍰 3
i
Oh nice! I love sokoban games. (There are even some good ones that do have pulling!) If you get this running, I will play it.
Aside — this recent sokoban-esq game is absolutely fantastic: https://www.muntedfinger.com/canofwormholes/ (Seems it's only available on steam, alas)
❤️ 1
k
Here's a playable iteration of the game: https://akkartik.itch.io/sokoban
w
I'm a big fan of "A Monster's Expedition through puzzling exhibitions." It isn't needlessly difficult, but simultaneously has some mind blowing mechanics https://store.steampowered.com/app/1052990/A_Monsters_Expedition/.
❤️ 1
i
Somehow, just using the arrow keys, I made a copy of the character sprite, and when I touch it with my character it opens a code editor?
😱 2
I did it like 3 times but don't know why / how
k
Opening the code editor might be a sign it's throwing an error message. If it happens again could you look for a message in the output window (bottom half of screen)? 🙏
i
Unable to select the text, so here's a screenshot
To repro, all you have to do is (with a bit of space on either side of your character), push left and right at the same time
You end up with 2 characters each time you do it, one of which you can control, the other is a ghost that causes a crash if you touch it (producing the stack trace screenshotted above)
k
Amazing ❤️ I can't reproduce this at all. What device are you on?
i
Power Macintosh Professional macOS OS X (Ten) 14 (Fourteen) Sonoma
❤️ 1
k
I just got it to happen! Nice race condition. Seems to be harder to trigger on Linux, but I can still do it by trying to hit left and right arrows at once.
🍰 1
I'm curious how you hit this. Were you trying to stress test or were you just solving really fast?
i
Solving really fast
❤️ 1
k
This broke my mental model of LÖVE for a few minutes, but no I was doing something naughty: introducing side effects when drawing a frame.
🍰 1
🍬 1
I just uploaded a fix: https://akkartik.itch.io/sokoban (https://git.sr.ht/~akkartik/sokoban.love/commit/b82b816cafae) Thanks so much for reporting this bug!
i
I'm having a hard time figuring out how to download the updated version
k
I updated the page in place. The old file sokoban-aa shouldn't be available anymore. Now you should see sokoban-af. It's in the same place on the page but it's a new file. Feel free to delete sokoban-aa. Does that help?
i
"in place" — on itch.io?
Seems updated there
Nice
k
Yeah exactly. Great.
i
Is there a way to see which puzzle number I'm looking at? I want to try 42 after hearing you talk about it on Masto
k
You should see a level number. It's near the top left of the puzzle in landscape mode or centered above the puzzle in portrait mode. But I think it might get hard to spot if the window is close to square..
👍 1
i
yeah
k
Ouch. Will fix.
i
Oh, it's fine
I just didn't realize the layout was based on aspect
k
Those buttons are also overlapping.
i
Yeah — I was wondering "seems undo is broken"
Nah, just my screen shape :)
😄 1
Took me a couple tries! That was fun
❤️ 1
Are these in a particular order? I just jumped ahead to 91 and it was, like, way easier
110 was fun
❤️ 1
k
I've definitely seen a level immediately after a hard one be easy. But it's possible they're more linear after 106. I gather 1-106 is the kiddie pool.
🍰 1
I just didn't realize the layout was based on aspect
It occurs to me that my responsive layout "algorithm" is utterly broken at the default resolution/aspect ratio (800x600) any LÖVE app opens up with on a computer.
FYI I've improved the layout and put a new version on https://akkartik.itch.io/sokoban Now it errs on the side of showing all the UI even if the board ends up getting too small. Hopefully people will respond by expanding the window. Thanks so much for bearing with it!