I guess it was as simply as just including a blank function playdate.update() function in the main.lua No more error.
I am running on a Mac. I'm nearly a complete beginner — not to coding per se, but to this sort of environment. So I'm not even terribly comfortable with a command line.
BUT! Things were running smoothly when I first installed everything.
Now every time I compile and run the .pdx on the simulator I get the error
"No such function 'update'"
Even if it's just a simple print statement.
I've tried removing all but the simplest lua code but it still seems to be trying to run this function that I can't tell where it even exists. What could I do to reset this?
Most games use a program flow where you have an infinite loop. This is often called the main loop and it is responsible for updating and drawing the game. In Playdate SDK the main loop lives outside your code and always calls a callback function named update. While this function is mandatory, it's up to you to implement it.
The simplest setup looks something like this:
-- Here you can initialize your game
-- as long as it takes less than 10 seconds
local myScopedVariable = 2
-- This function will be called every frame.
function playdate.update()
-- Your game logic goes here
end