Sure! Here's a simple 2D shooter game implemented as a single HTML file using JavaScript:
This basic 2D shooter game allows the player to control a blue rectangle as the player character using left and right arrow keys. Pressing the space bar shoots red bullets from the player's position. The goal is to shoot and destroy incoming enemies, which are not included in this basic implementation.
Please note that this is a minimal implementation and can be expanded upon to include more features, enemies, scoring, and additional gameplay mechanics as per your requirements.