Something is not setting up playbox correctly. Specifically, the registerPlaybox()
method looks like it's never called because that is what makes Lua aware of the playbox
global.
The call is located in the main.c
file:
int eventHandler(PlaydateAPI* playdate, PDSystemEvent event, uint32_t arg) {
if(event == kEventInitLua) {
pd = playdate;
registerPlaybox(); // <--- here
}
return 0;
}