Posted June 06, 2022 by the42ndturtle
#pathfinding
Enemy pathfinding has been added. Enemies actually pose a threat now instead of aimlessly wandering into walls. At first I tried implementing my own pathfinding, but it was pretty hard to implement even simple pathfinding with the limitations of the engine. The shortest path was basically never an option.
My initial attempt at pathfinding.
After struggling a bit with trying to use the pathfinding object, I found the Cleaner AI which I was able to copy and paste into my game with a little bit of tweaking.