I’m developping a html5 game but i got this problem if a player is in the mid game and accidentally closes the web browser. Once he opens the game again, the game starts from the
beginning and the game that the player was playing is lost. so i found this solution With the local storage, we can encode the entire game data into JSON and store them. In this way, players can resume their game later.
But in my game every player has a login , so i should store his login too in the localStorage so every player will have his own localStorage .
So Can’i do this with localStorage ?
Is there a better solution?
Thank u in advance
Yes you can use SQLLite database on client. it is open source and could be downloaded from download link for SQLLite