Save state/progression

Hello, it's been a while. Jut wanted to know how, or if it is possible to create a save function so that If I leave my game, it would load from where I left off.


Pulp has persistent storage. You call store <var> to save a variable and restore <var> to load it (or without an argument, to load all variables). Use restore in your on load handler and then you can use the restored values to position the player and other sprites, etc.

Also see this answer for an example of how to implement default values when no data has been stored yet.