Would love to see an SDK callback that fires whenever the Playdate clock rolls over to h00m00s00 — especially with a GMT equivalent, to help with the new daily scoreboard feature. In my game, I have the leaderboard-displaying code set up so that it'll automatically refresh as the clock strikes midnight (to make sure people aren't seeing any stale scores), and (perhaps there's a better way, but) currently I do something like:
function playdate.update()
local gmt = playdate.getGMTTime()
if gmt.hour == 0 and gmt.minute == 0 and gmt.second == 0 then
-- well, it's midnight now;
end
end
...to fire the refresh code at midnight, with an extra "loading" catch packed in so that it doesn't fire like 30 times per second. It would be nice to have a built-in callback that just fires once as the clock switches over to a new day, would be incredibly convenient for stuff like this.