Sure! Here's an example of a simple maze game implemented as a single HTML file with JavaScript:
In this game, you control a player character (represented by a blue div) in a maze. The goal is to reach the closet (represented by a green div) without getting caught by the enemy (represented by a red div). Use the arrow keys to move the player character around the maze. If you collide with the enemy, you lose and see a game over alert. If you reach the closet, you win and see a congratulations alert. The game automatically resets after winning or losing.