Sure! Here's an example of a Tower Defense game implemented as a single HTML file using JavaScript:
Please note that the example provided here is a basic template for a Tower Defense game and it is not a fully functioning game. You will need to implement the actual game logic, drawing functions, enemy waves, tower placement, and upgrades using JavaScript. This template provides you with a starting point to build your Tower Defense game.