Sure, here's an example of a simple shooting game implemented as a single HTML file using JavaScript:
This game has a player-controlled rectangle (the blue one) at the bottom of the canvas, and a target rectangle (the red one) at the top. The player can move left and right using the arrow keys and shoot bullets with the space bar. The objective is to hit the target and score as many points as possible.
Hope you enjoy the game!