Visiting my blog, eh? Wise move. I think we should all try to understand other people, no matter how stupid their beliefs.
Title: Dumb baddies in my game prototype leads me to Pacman docs Posted: March 13, 2012 (08:44 PM)
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.
Opinions expressed in this blog represent the opinions of those expressing them and do not necessarily reflect the opinions of site staff, users and/or sponsors. Unless otherwise stated, content above belongs to its copyright holders and may not be reproduced without express written permission.