Sure, here's a basic Pac-Man game implemented as a single HTML file using JavaScript:
Please note that in this code, assuming you have two image files named `emozi_all/pacman.png` and `emozi_all/ghost.png` in the same directory as the HTML file, representing Pac-Man and the ghost respectively. You may need to update the image file names and paths accordingly.
This is just a basic implementation to get you started, and you can enhance it further by adding game logic, scoring, levels, and more complex behaviors for Pac-Man and the ghosts.