Pac-Man icon indicating copy to clipboard operation
Pac-Man copied to clipboard

Add debug pacman & ghost traces

Open hecoding opened this issue 8 years ago • 0 comments

Add debug pacman and ghosts that show where are they going by painting a colored trace on the maze. The color of the trace may vary giving they're hunting, escaping, etc...

Using GameView.addPoints() i.e: GameView.addPoints(game,Color.BLUE, game.getShortestPath(currentPos, nearestFood));

Implementation

For Ghosts we can create new Classes like StarterGhostsDebug and for our own controller we can simply add the lines to GrammaticalAdapterController conditioned by a debug boolean.

hecoding avatar Dec 17 '16 20:12 hecoding