Sure! Here's an example of a simple gun shooting game implemented in a single HTML file using JavaScript:
This code creates a simple game where you can shoot a bullet from a gun by tapping on the screen. The gun and bullet are drawn on an HTML canvas element, and the game loop continuously updates and redraws the game elements.
Note: This is a basic example of a gun shooting game. You can enhance it by adding targets to shoot at, scoring system, sound effects, etc., depending on your requirements and preferences.