Sure! Here's an example of a simple shooting game implemented as a single HTML file using JavaScript:
In this game, you control a blue player character at the bottom of the canvas. You can use the left and right arrow keys to move the player horizontally, and every time you click on the canvas, a bullet is shot from the player's position towards the top of the screen.
I hope this example helps! Feel free to modify and enhance it according to your needs.