In my game, i want to creat local highscore using webstorage.
If my first time played the game, i'm only dead 5 times. The best score will be 5.
When i play the game again, i'm dead 3 times, the best score will be set to from 5 to 3, and play it again, if i dead 10 times, the score still be 3. How can i do that?? An example will be great. Thank you all!
The logic about increase the score is simple but decrease it make me sick