Sure! Here's an example of a simple game where you play as a mouse collecting cheese. The game will be implemented as a single HTML file enclosed in script tags:
In this game, the mouse is represented by a gray square and the cheese is represented by a yellow square. The objective is to move the mouse around the screen using the mouse's position and collect the cheese by overlapping with it. Whenever the cheese is collected, it generates a new position randomly on the screen.
You can save the above code as an HTML file (e.g., `mouse_game.html`) and open it in a web browser to play the game.