Sure! Here's an example of a simple tower defense game implemented as a single HTML file using JavaScript. The game will have red cubes as enemies, yellow cubes as the enemy path, green cubes as warriors, and a gray cube as the tower.
Please note that this is a basic implementation of a tower defense game. You can further extend this code to include features like tower shooting mechanisms, enemy movement, game scoring, etc.