Sure! Here's an example of "Colored Blocks" game implemented as a single HTML file using JavaScript:
This code sets up a game canvas, generates and renders colored blocks randomly on the canvas. The player's goal is to click on the blocks in the correct order. Each level increases the difficulty by adding more blocks to destroy. The game starts automatically once the HTML file is loaded in a web browser.