Sure, here's a simplified version of Pac-Man implemented as a single HTML file using JavaScript:
This code sets up a simple Pac-Man game where you control Pac-Man using the arrow keys. Pac-Man starts at the top-left corner of the game board, and the objective is to collect all the yellow points scattered across the board. When Pac-Man moves over a point, it disappears.
Note: You need to replace the `emozi_all/pacman.png` image path with the actual image file path for the Pac-Man sprite. Also, make sure to put this HTML code in a single file with the image file in the same directory.