Sure! Here's an example of a simple Pac-Man game implemented as a single HTML file using JavaScript and enclosed in script tags. The game supports smartphone operation and includes pictograms for easy understanding:
To play the game, simply open the HTML file in a web browser on any device, and you'll be able to control Pac-Man using the arrow keys. The objective is to eat the fruit while avoiding the ghosts. If Pac-Man touches a ghost, the game is over, and the score will be displayed. The game will automatically restart after that. When Pac-Man eats a fruit, the user's score increases. Have fun playing!