Sure! Here is a simple implementation of Pac-Man game using JavaScript and enclosed within script tags in a single HTML file:
This implementation creates a simple game board with Pac-Man represented by a yellow circle. You can control Pac-Man's movements using the arrow keys. Pac-Man will wrap around the game board if he moves beyond its boundaries.