Sure! Here's an example of a shooting game implemented as a single HTML file, including JavaScript, enclosed in script tags:
In this game, targets (represented by red circles) will randomly appear within the game container. The objective is to shoot them by clicking on them, which will turn them green and increase the score by 10. Targets will disappear after 2 seconds if not shot. The current score is displayed above the game container.