banner
pancelor.bsky.social
@pancelor.bsky.social
🔟 pancelor.itch.io/make-ten-deluxe - out now!

making short games, learning how to make longer ones too
- games: pancelor.itch.io/
- website/blog/etc: pancelor.com/
the result is less coupling, in a way that feels sort of obvious in retrospect. but coming at it from the concrete goalpost of "can I delete this line of code without changing ANYTHING else" seems to help me sometimes
November 15, 2025 at 8:11 PM
I like making individual lines of code deletable. like, no:
```
hit_obj = try_move(dx,dy)
if hit_obj then
try_push(hit_obj,dx,dy)
end
```
but instead:
```
try_move(dx,dy)
try_push(dx,dy)
```
I feel a bit bad checking for obstacles twice, but its _so_ good for keeping the complexity demons out
November 15, 2025 at 8:10 PM
thanks!

interesting point about tostr()->"". here's lua 5.4:
> function f(x) if x>0 then return x end end
> tostring(f(10))
10
> tostring(f(-4))
<error>

I can't decide whether to be horrified or not haha. I think I like your way better!
November 15, 2025 at 7:22 PM
and now the bug I was originally trying to track down:
```
function strwidth(str)
local x,y=?str, 0, 10000
printh(tostr(x).." "..tostr(y))
return x,y
end
strwidth("²7⁶y5sTART")
```
this prints (to host console) `7y5sTART nil` (??)
November 15, 2025 at 4:58 AM
another separate bug:
```
function strwidth(str)
x,y=print(str, 0, 10000)
printh(tostr(x).." "..tostr(y))
return x,y
end
strwidth("hi")
```
this prints `nil nil` when run inside a cart, should be `23 10011` instead
November 15, 2025 at 4:46 AM
("what other effects that might have" hm now when I open a new code tab, newlines show an inverted n when highlighted. go figure)
November 15, 2025 at 4:33 AM
, tho idk what other effects that might have. p8scii seems to still work in carts after a tiny bit of testing.

also, `print(nil)` doesn't work unless I change the early-out condition to `if (select("#",...) == 0)`
November 15, 2025 at 4:17 AM
heyyo, bug report for ya: printing from carts acts weird -- print(true) doesn't print anything. someone pointed me to /system/lib/print.lua, where they noticed printing to windows acts differently from the console. changing `_print_p8scii(str` to `_print_p8scii(_tostring(str)` seems to fix it,
November 15, 2025 at 4:15 AM
did some sort of engine change speed up the credits? I laughed so hard the first time I beat it but then I saw that one early video and I swear they looked slower. I've been wondering about it ever since. great game
November 4, 2025 at 3:44 PM
nicee :D did it work first try? both times I've tested it I had a typo or two
September 29, 2025 at 5:29 AM
I wish! But I don't think it will be. not sure tbh.
September 27, 2025 at 6:55 PM
and if you are not nearby vancouver (aka most people in the world) the game's on sale for the weekend: itch.io/s/160818/van... . not quite as exciting as going to an event! but I do what I can
vangamegarden sale by pancelor
A bundle by pancelor, $12.50 for CEREALMAN, Make Ten Deluxe
itch.io
September 27, 2025 at 8:41 AM
"repeatedly reinventing my whole gamedev practice" -- too real! welcome welcome
July 18, 2025 at 11:25 PM
ah I should have dug a bit more! I see you've confirmed it's a bug (www.lexaloffle.com/bbs/?tid=150...)
Using fetch() for images no longer works in 0.2.0e-0.2.0g
www.lexaloffle.com
July 9, 2025 at 11:55 PM
fetch("myfile.png") returns a string now -- is that intentional or a bug? is there an easy way to decode that png-datastring to a userdata?
July 9, 2025 at 11:53 PM