Sure! Here's an example of a simple top-down shooter game implemented as a single HTML file using JavaScript:
In this game, you control a player character represented by a filled square. You can move the player character using the arrow keys on your smartphone. The objective is to shoot down the enemy characters represented by filled squares before they reach the bottom of the screen. You can shoot bullets by tapping the screen. The game ends if an enemy character collides with your player character. The score increases each time you successfully shoot down an enemy.
Please note that this is a basic example to demonstrate the mechanics of a top-down shooter game. You can customize and enhance it further based on your specific requirements and game design.