Dumb baddies in my game prototype leads me to Pacman docs
March 14, 2012

Last night I was programming some super-elementary pathfinding into the game prototype I'm working on and I noticed enemies were getting stuck on corners when following the player. They don't yet have the brains to try moving a few more pixels forward so that they can round the corner and continue the pursuit.

Here's a demo video (152kb). The pink/red rectangle is the player. The bottom-left blue rectangle is the enemy ploddingly following him. (And the things that look like a trail of turds are player footsteps… In case I have a level set in dust or snow)

Googling for information on path-finding, I came across this nice webpage called The Pac-Man Dossier which explains the workings of Pac-Man in extreme but user-friendly detail. It didn't solve my problem but it's more interesting than my problem and you may enjoy having a look at it.

Most recent blog posts from Wade Clarke...

Feedback

No one has responded to this post yet.

eXTReMe Tracker
© 1998-2017 HonestGamers
None of the material contained within this site may be reproduced in any conceivable fashion without permission from the author(s) of said material. This site is not sponsored or endorsed by Nintendo, Sega, Sony, Microsoft, or any other such party. Opinions expressed on this site do not necessarily represent the opinion of site staff or sponsors.