Sure! Here's an example of a simple game where the player has to hit targets using a gun that shoots bullets. The game will be implemented as a single HTML file with JavaScript enclosed in script tags:
In this game, the player can click on the game area to fire the gun. The bullet will be launched from the gun and move towards the top of the screen. If the bullet hits a target, the target will turn green and disappear after half a second. The game will create new targets randomly after each successful hit.