Sure! Here's a simple implementation of the classic game Pac-Man using JavaScript. You can copy and paste the entire code into a single HTML file and open it in a web browser (preferably on a smartphone) to play the game:
You can control Pac-Man's movement using the arrow keys on your smartphone. The objective is to eat all the yellow pac-dots while avoiding the ghosts. Have fun playing Pac-Man!