Sure! Here's an example of a simple game implemented as a single HTML file using JavaScript:
In this game, particles randomly move around the canvas and bounce off the walls. Each particle has a random size, speed, and color. The game continuously updates and redraws the particles to give the illusion of movement.
Save this code in an HTML file and open it in a web browser to play the game. The canvas size is set to 400x400 pixels, but you can adjust it as per your preference.