Sure, here's a simple tower defense game implemented as a single HTML file using JavaScript:
This simple tower defense game involves defending a tower from enemies that approach it from the left side of the canvas. The tower can be moved horizontally by hovering the mouse over the canvas. The game ends when an enemy collides with the tower, and the player's score is displayed. The game can then be restarted by reloading the page.