TiAm
[quote:3qzuv87d]However if the user opts to clear all their cookies or offline website data, WebStorage will be cleared.
I don't know, it'd be pretty silly if the user cleared their WebStorage and found that they broke the game.
Using global variables the way I set it up now is perfect, if the player dies he can respawn, if I exit game completely and open it up again the player doesn't double spawn. (If the global variable has the value "Dead", then upon New Game, a new player is created. So value got saved between closing and opening the game again, it would break.)
Could I set it up the same way using WebStorage or Dictionary Key? Using Session Storage with WebStorage seems promising, but I wish I didn't have to change it.
Could I use a Dictionary Key / WebStorage to get the same functionality I have with Global Variables ?