Sure! Here's an example of a simple shooting game using JavaScript in a single HTML file:
This game features a player controlled by touch events, shooting bullets at randomly spawning enemies. The goal is to shoot as many enemies as possible without letting them reach the player. The game will end when an enemy collides with the player.