Sure! Here's a simple Pac-Man game implemented as a single HTML file using JavaScript:
This Pac-Man game includes a game board, a Pac-Man character, and three ghost characters. The player can control the movement of Pac-Man using the arrow keys or WASD keys. The ghosts move randomly in each direction. The game loop continuously moves the ghosts at a regular interval.
Please note that this is a simplified version of Pac-Man for demonstration purposes. You can customize and enhance the game further with additional features, levels, and game dynamics as per your requirements.