Sure! Here's an example of a Pac-Man game implemented as a single HTML file, including JavaScript code and using pictograms. It also includes Mario's invisibility star that makes Pac-Man invincible for a limited time. You can play the game by opening the HTML file in a web browser.
In this example, there are Pac-Man, four ghosts, and a Mario invisibility star displayed on a game board. You can control Pac-Man's movement using the arrow keys on your smartphone. The ghosts move randomly, and the invisibility star's position changes every 10 seconds. If Pac-Man collects the star, it becomes invincible for 5 seconds.