An implementation of pacman written using PApplet library in Java. This project uses gradle. gradle run
is to run the application, gradle test
runs the tests and gradle jacocoTestReport
provides a report of the testing done.
Pacman moves using arrow keys. Pressing spacebar toggles the Ghost's targets. The superfruits turn ghosts into frightened mode, where they can be consumed by Pacman and do not return until Pacman loses a life. The sodacan reduces the visibility of the ghosts and gives them erratic behaviour. The behaviour of ghosts is identical to regular pacman.
The config.json
file is used to control the speed, the number of lives, the map and the length of modes which determine each ghost's behaviour.