Welcome Back

SRPG can save, and in theory load, games. It’s a web-based game, so I’d like to take it a step further and remember the player the next time they visit the page (via a cookie or HTML5 local storage).

If the user is a returning player, they should be presented with a few options:

  • Start a new game
  • Resume a saved game from local storage
  • Load a save file from the user’s computer

Now that I’m getting into the realm of storing data on the user’s behalf, I guess I’ll also need a “forget me” command somewhere to delete local storage data and cookies, resetting the game to its original state.

I’m also very tempted to include elements that progress/trigger based on the player’s absence, but I think I’ll have to pass on that, since it would break the seeded RNG.