Sure, here's an example of a simple shooting game implemented in a single HTML file using JavaScript:
This basic shooting game features a player controlled by mouse movement, shooting bullets using the spacebar, and enemies falling from the top of the canvas. The goal is to shoot the enemies and avoid letting them reach the bottom. The score increases by 10 for each enemy destroyed, and the game ends when an enemy reaches the player's position.