Sure! Here's an example of a simple generative art game in a single HTML file using JavaScript:
In this generative art game, the script generates random shapes (either circles or squares) of random colors and random positions on the canvas. The game loop continuously clears the canvas and draws new shapes in each frame, creating a dynamic and visually appealing generative art experience.