I'm glad you're interested in creating a game! Here is a simple example of a game implemented in a single HTML file using JavaScript:
This code sets up a simple game where you can control a blue square using the arrow keys. You can further enhance this game by adding more features like obstacles, enemies, scoring, etc. Good luck with your game development!