Use the arrow keys to move. If you eat one of the big bonus balls you can EAT all the ghost for a five seconds! You have three lives before the level restarts. Eat all the white balls before one of the ghost attack you and you win! Click the green flag 2x. Don't go into full screen.
With thanks to @alexparr for inspiration. I drew the map and coded everything. Comment any bugs. I know that the white dots aren't perfectly aligned. Also I tried putting in the background sound when you're playing the game but the game was already running a lot of scripts and slowed down the sound effects. I also couldn't figure out how to make the ghost chase pacman. If any of you can do it remix this project.