title: Path finding in a Java 2d Game?
body: <p>Essentially its a pacman clone game I'm working on. I have an Enemy class, and 4 instances of this class created which all represent 4 ghosts of the game.</p>
  
  <p>All ghosts start up in random areas of the screen and then they have to work their way towards the pacman character. As the player controls the pacman, moving it around, they should follow it and take the nearest possible way towards him.</p>
  
  <p>There is no maze/obstacles (yet) so the entire map (400x400 pixels) is open ground to them.</p>
  
  <p>For the player and each Ghost, i can retrieve the X, Y, image width and height attributes. Also, i already have a collision detection algorithm, so not worried about that, just about the ghosts finding their way to pacman.</p>