Here is an example of a simple shooting game implemented as a single HTML file using JavaScript:
This game is a simple shooting game where you control a player using the left and right arrow keys, and shoot bullets using the spacebar key. The objective is to shoot down the enemies that are falling from the top of the screen. The game ends if any enemy reaches the bottom of the screen or if the player collides with an enemy. The score increases by 10 for each enemy shot. The game runs in a continuous game loop and updates the game state and renders the game objects (player, bullets, enemies) accordingly.