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: Created by Caleb Foss. From 2024 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: 2023 code. You can suggest improvements by contributing to the current website!
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.