AI Pathfinding is an essential part of any game with "smart" NPCs. So... here's Pathfinder: Axolotl Edition!!! Future editions will be named in alphabetical order. 1. Click and drag the food to move it. 2. Press space to spawn axolotls at the cursor. 3. Hold mouse button anywhere to see the pathfinding.
5 Sprites, 20 scripts. I followed @griffpatch's #AI #pathfinding tutorial in order to create this project. I plan to use it in a #stealth game. Any other recommendations? This system is extremely #simple. We just push out squares from the goal, noting what direction they came from (and, consequentially, what direction they'd need to go to get back). This fills the screen with squares that just so happen to tell #axolotls how to reach the goal from any square on the map! We assign each direction a color, and, to reach the goal, axolotls just need to see what color they're touching and move in the right direction.