Sure, here is an example of a simple shooting game implemented as a single HTML file using JavaScript:
This game sets up a canvas element where the gameplay takes place. The player can move left and right using arrow keys, and shoot bullets by pressing the spacebar. The goal is to shoot down the green enemies without colliding with them. The game keeps track of the score, and when an enemy reaches the bottom of the canvas or the player collides with an enemy, the game ends and the final score is displayed.
Please note that this is a basic example and can be further improved and customized according to your preferences.