Sure! Here's an example of a simple shooting game implemented as a single HTML file with JavaScript:
This game involves a player controlled by arrow keys and shooting enemies with spacebar. The player can move horizontally across the screen and shoot bullets. Enemies spawn randomly from the top and move downwards. When the bullets collide with enemy objects, they are removed from the game.