Sure! Here's a simple game implemented as a single HTML file using JavaScript. Please copy the code below and save it as a .html file to run it:
To play the game, you simply need to open the HTML file in a web browser, which will run the game. The game represents a gun at the bottom of the canvas, and fires (shown as a red circle) will fall from the top of the canvas. The objective is to move the gun using the left and right arrow keys to catch the fires. Each time a fire is caught, the score will increase.