Sure! Here's the code for a simple Pac-Man game implemented as a single HTML file:
To play the game, simply copy and paste the code into a new HTML file and open it on a web browser (preferably on a smartphone for the intended experience). The game uses JavaScript to handle the game logic, canvas for drawing, and the arrow keys for controlling Pac-Man. Enjoy playing Pac-Man!