Recently by Haining Henry Zhang
In the last article, we developed a preliminary version of the Pac-Man game. Four ghosts are randomly roaming the maze and a Pac-Man character can be controlled by a player. Now, we write some more code for the interaction between ghosts and the Pac-Man:
- Pac-Man eats a ghost after he gobbles a magic dot.
- A ghost eats the Pac-Man when it touches him.








Facebook Application Development
@InsideRIA on Twitter