State Machine AI (jhocking)
About
A WebGL build of https://github.com/jhocking/StateMachineAI
This is a demo of a simple AI that uses a state machine and waypoints. Arrow keys move the player, while the enemy behavior is:
* slowly patrol waypoint path until see player
* brief pause for guard noticing player, then give chase
* if the player goes around a corner just move to last place seen
* once reach that target check if can see player now
* if not then pause (maybe look around) before returning to patrol
* navmesh back to path, with obstacle avoidance at all times
System requirements for Web
Last Modified: Dec 31, 2021
Where to buy
itch.io