Sure, here's an HTML file containing a game inspired by Google's Chrome Dinosaur game. In this game, you can control a dino and shoot cactuses using a gun. To play the game, simply copy and paste the code below into a new HTML file and open it in a web browser.
In this game, the dino is initially positioned at the left side of the screen. The dino can jump by pressing the spacebar or the up arrow key. To shoot, press the "s" key. The objective is to shoot the oncoming cactuses before they collide with the dino. The score increases with each successful shot. If a cactus collides with the dino, the game ends, and a "Game Over" message is displayed.