Sure! Here's an example of a simple shooting game implemented as a single HTML file:
In this game, the objective is to control a squad team represented by a blue rectangle at the bottom of the canvas. You can move the squad using the right and left arrow keys. Pressing the spacebar will shoot bullets upwards. The bullets will destroy targets if present, but this basic implementation doesn't include enemy targets.
Hope this helps! Feel free to customize and enhance the game further as per your needs.