I would save the highscore with the localstorage, but each time I reboot the game, my variable resets to zero.
I already have a "coin saving system" that works well, I turned off during the time to set up my system to the score.
screen
Any Idea of what am I doing wrong?