A short project desmontrating a way to implement flee behaviour for AI.
This game is inspired by Pacman, you are being chased by the NPCs until you reach one cube, representing food. Then the role are inversed, the NPCs will try to flee from you.


There are two scenes, one implementing a waypoint method of fleeing, the other, a fleeing method with sensors.

Commands :

ARROW-KEYS : Move up, down, left or right
M - Change scene
T - Change to Debug mod (only relevant in the sensors scene when the NPCs are fleeing)
SPACE - No need to get to the food, as the goal here is to observe the NPCs behaviour. Press SPACE to get into power mode.

Leave a comment

Log in with itch.io to leave a comment.