Here's an example of a simple Pac-Man game implemented as a single HTML file using JavaScript:
Please note that this is a simple implementation and lacks many features of a complete Pac-Man game, like the maze, ghosts, score tracking, etc. However, it should give you a starting point to build upon and add more functionality to create a fully-featured Pac-Man game.