Sure, here's a simple shooting game implemented as a single HTML file using JavaScript:
This game involves shooting enemies with bullets while avoiding collisions with them. The player is controlled using the left and right arrow keys, and bullets are fired using the spacebar. Enemies continuously descend from the top of the canvas, and the player earns points by shooting down enemies. The game ends if an enemy collides with the player.