Testing different pathfinding algorithms...
Testing different pathfinding algorithms...
Using Visual Studio, the library SDL, C++ and a hierarchy based on the SOLID system, I did several Pathfinding exercises, state machines and decision making.
I learned to use different algorithms to be able to apply them to an agent so that they would follow my instructions.
Having these algorithms, I generated other agents with their own will using state machines, so that they would wander less the moment they saw me, that they would start chasing me until I was too far away and they could not see any further.
In this last example I made use of an action selection system based on priorities so that the agent has to obtain the keys to the rooms in the optimal way to reach the goal (the coin).