This example demonstrates a game with a time limit and score. The browser’s local storage stores the high score so when the game is played again using the same browser, the high score remains. Clearing the browser data also clears the high score.
Circle Clicker by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.