Sure, here's a simple game where you can fight a dinosaur using JavaScript and HTML within a single HTML file:
Please note that in this example, you need to replace the image paths for the dinosaur and the gun with the actual image file paths you have. Additionally, you can customize the styling and further enhance the game as per your requirements.