Sure! Here's an example of a simple shooting game implemented as a single HTML file using JavaScript:
In this game, each time you press the Space bar key or click the mouse, a bullet is shot from the bottom of the canvas towards the top. The objective can be modified to suit your desired game design by adding targets, scoring, or additional interactions.
Please note that this is a basic example, and you can expand on it to create a more complex and enjoyable game.