Hello! I was making my first Playdate game in Pulp, called Dots Mania. In this game you need to collect as many dots as possible before time runs out. It's still a work in progress.
But I have an issue: when I play this game in the Playdate Simulator, when the time runs out, the Playdate Simulator crashes with this error:
Update error: ?:-1: attempt to index a nil value (upvalue '?')
stack traceback:
?: in upvalue '?'
?: in function <?:1632>
(...tail calls...)
?: in function <?:1365>
(...tail calls...)
?: in upvalue '?'
?: in upvalue '?'
?: in function <?:1478>
(...tail calls...)
?: in function <?:1365>
(...tail calls...)
?: in upvalue '?'
?: in field 'callback'
?: in upvalue '?'
?: in function <?:3753>
I don't know if it's a bug or I'm doing something wrong..
Also, here's the PDX with the JSON:
EPKBYSZMFJDots-Mania_20231008155432.zip (61.7 KB)