Sure! Here is an example of a simple generative art game implemented as a single HTML file using JavaScript:
This code sets up a canvas element where random shapes of different colors are drawn whenever the user touches or clicks on the canvas. The canvas size is adjusted to fit the screen, and shapes are generated randomly each time. You can further enhance the game by adding scoring, level progression, or additional game mechanics as per your requirements.