Sure! Here's a simple Pac-Man game implemented in a single HTML file using JavaScript. It's designed to be playable on smartphones and uses pictograms for the game elements.
To play the game, copy the above code into a text editor and save it with a .html extension (e.g., `pacman.html`). Then, open the saved file in any modern web browser on your smartphone. You can control Pac-Man's movements by swiping in the desired direction on the screen. The goal is to avoid colliding with the blue ghost. Once you are caught by the ghost, the game will display a "Game Over" message and reset.
Enjoy playing Pac-Man on your smartphone!