hecoding/Pac-Man

Add debug pacman & ghost traces

hecoding opened this issue · 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.