Sure! Here's an example of a simple generative art game implemented as a single HTML file using JavaScript and enclosed in script tags:
In this game, whenever you refresh the page, random shapes (rectangles) of random colors will be generated on the canvas. The canvas size is 400x400 pixels, but you can adjust it as per your preference. The shapes will be either filled or stroked based on randomness.
Feel free to modify this code to add more features or interactions to make it a complete game.