Sure! Here's a simple implementation of Pac-Man as a single HTML file, using JavaScript and enclosed in script tags. The game can be played on a smartphone, and pictograms are used for the characters.
You can save the above code as a .html file (e.g., `pacman.html`) and open it in a web browser on your smartphone to play the game. Simply touch the left side of the screen to move Pac-Man left or right, and touch the top side of the screen to move Pac-Man up or down. Enjoy your Pac-Man game!