WASD - move U - debug Ghosts - movements: Red ghost - finds the fastest way to pacman Pink ghost - finds the fastest way to 40 pixels in front of pacman Blue ghost - 20 pixels in front of pacman + Red ghost's distance to pacman x 2 pointing (Red ghost) towards pacman Orange/yellow - turns when collides
Griffpatch made pathfinding and I did the rest. note it can be buggy.