Use logical algorithm to save game data in localStorage. Dispise that is not using a lot the locaStorage but the game must have the data encripted.
- Change
bestResult to another name and encrypt the data to avoid hacking
- Add context to game to prevent lose the game status after refreshing. (Keep the game after leaving)
Use logical algorithm to save game data in localStorage. Dispise that is not using a lot the locaStorage but the game must have the data encripted.
bestResultto another name and encrypt the data to avoid hacking