Sure! Here's an example of a simple generative art game implemented as a single HTML file:
This game creates a canvas where random shapes with random colors are generated and drawn each time the player taps on the canvas. It uses JavaScript code to handle touch events, generate shapes, and draw them on the canvas. The game starts immediately after the page loads the JavaScript code.