Sure! Here's an example of a simple Zombie Tower Defense game implemented as a single HTML file using JavaScript. You can copy and paste the code into an HTML file and open it in a web browser to play the game.
Zombie Tower Defense
In this game, you control a blue square (the player) at the bottom of the canvas. Zombies (green squares) will move down from the top. Your goal is to shoot the zombies by clicking on the canvas to launch red bullets (smaller squares). If any zombie reaches the bottom, the game is over, and "Game Over" will be displayed on the screen.
Note that this is a simple example and can be further improved with additional features, levels, and game mechanics.