Sure, here's an example of a simple shooting game implemented in a single HTML file using JavaScript:
To play the game, open the HTML file in a web browser. The player object ("red square") can be moved left or right using the left and right arrow keys, and shooting is activated by pressing the space bar. The goal is to shoot down the enemy objects ("green squares") before they reach the bottom of the game area. The enemies will continuously spawn every second.