Sure! Here's an example of a simple game implemented in a single HTML file using JavaScript:
This game is a simple dodging game where you control a blue player block using touch or mouse input. Your goal is to avoid colliding with any red enemy blocks falling from the top of the screen. The game ends when a collision occurs and your final score is displayed.