Here is a simple example of a game implemented in a single HTML file using JavaScript:
This simple game creates particles on the canvas when clicked and animates their movement. Players can interact with the game using their mouse or touchscreen on a smartphone.