Trigger reload via API

My game has some annoying sounds and when the simulator restarts it turns the sound on again. Being able to either pass a param on startup to control sound, or programmatically reload the loaded PDX would be a nice thing.

Check out playdate.restart(). We added that recently as a way to reset the game to a freshly-loaded state, in case that's easier than doing a bunch of teardown and cleanup when switching levels or scenes.

If I have a new build, will it reload the file?

I'm pretty sure it will. I mean, assuming you've copied it over..

1 Like