Sure, here's an example of a simple generative art game implemented as a single HTML file using JavaScript:
In this game, whenever you touch or click on the canvas, it will generate and display ten rectangles with random positions, sizes, and colors. The `generateRandomColor()` function is used to randomly generate a hex color value for each rectangle. The `drawRectangles()` function is responsible for clearing the canvas and drawing ten new rectangles each time it's called. The event listeners ensure that the rectangles are redrawn whenever the canvas is touched or clicked.
Note that this is a very basic example, and you can enhance it further by adding more gameplay elements, interactions, or rules depending on your requirements and creativity.