Sure! Here's an example of a simple shooting game implemented as a single HTML file using JavaScript:
Instructions:
1. Save the above code in an HTML file (e.g., `shooting_game.html`).
2. Open the HTML file in a web browser.
3. The game area is represented by a blue rectangle at the bottom of the screen.
4. Move your mouse or touch to control the player's position within the game area.
5. Enemies (green rectangles) will start appearing at the top of the game area and slowly move towards the bottom.
6. If an enemy collides with the player, the game ends and an alert will appear saying "Game Over".