Skip to content

Add debug pacman & ghost traces #12

@hecoding

Description

@hecoding

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions