Sure! Here's an example of a simple shooting game implemented as a single HTML file with JavaScript:
This game features a player represented by a blue square and a bullet represented by a red square. The player can shoot the bullet by touching the screen on a smartphone. The bullet moves upwards, and if it reaches the top of the canvas, it becomes inactive until another shot is taken.
Feel free to modify and enhance the code based on your specific game requirements.