Sure! Here's a basic example of a shooting game implemented as a single HTML file using JavaScript:
Shooting Game
This code creates a simple shooting game where you control a blue player at the bottom of the screen and shoot bullets by pressing the spacebar. The objective is to shoot the green enemies falling from the top before they reach the player. If an enemy collides with the player, the game ends.
You can copy this code into a new HTML file, save it, and open it in a web browser to play the game.