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.
Related Examples

Large purple circle on a grey background.
Circle Clicker
Make a game about clicking a circle quickly and save the high score.

Two narrow white rectangles and a white square representing the paddles and ball in a game of ping pong.
Ping Pong
Make a game inspired by Atari's Pong.

A narrow green L shape and a red square representing the snake and fruit in the arcade game Snake.
Snake
Make a game based on Snake arcade games.