Sure! Here's an example of a simple Pac-Man game implemented in a single HTML file using JavaScript:
To play the game, simply open the HTML file in a web browser that supports JavaScript. You can move Pac-Man using the arrow keys and the goal is to eat all the food on the game board.