Autonomous Enemies

Currently, I’m developing the autonomous agent behind the enemies. The agents patrol the labyrinth searching for the player. To do this, the agents choose a point in the labyrinth and calculate and follow the shortest path they need to take from their current location to the one picked. When they get to their objective, a new location is assigned randomly (between a set of options). Then, they recalculate a new path and follow it. By doing this, we assure the agents patrol the entire labyrinth without following a specific path or pattern.
If the agents find the player while roaming the labyrinth, they follow the player instead, until the player breaks the line of sight by hiding behind walls.

Deixe um comentário