Program a more sophisticated pacman game. Like in Exercise 2, the pacman can be moved using the cursor keys and must eat as many pills as possible. Create a new character "Ghost". A fitting sprite is ghost.png, available in the image library of this page. Program different chasing strategies:
A similar example: Chasing Actors (JGameEx15.java) |
![]() |
As a template, you can use the file PacmanEx3
Download: (PacmanEx3.zip)