Sure! Here is a simple generative art game implemented in a single HTML file using JavaScript and enclosed in script tags:
This code will create a canvas where different shapes (rectangles, circles, and triangles) will be randomly generated and drawn on the screen every second. It's a simple generative art game where you can watch the colorful shapes appear and disappear on the canvas.