Home▸AI & Machine Learning▸Enemy AI Finite-State Machine (2D)

🤖 Enemy AI Finite-State Machine (2D)

Interactive 2D top-down enemy AI finite-state machine: a guard patrols waypoints, chases, attacks and searches for a target based on real distance and timer transition rules.

AI & Machine Learning2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-finite-state-machine-enemy-ai-game-simulation-lab ↗ Open standalone
⚙ Under the hood

Interactive 2D top-down enemy AI finite-state machine: a guard patrols waypoints, chases, attacks and searches for a target based on real distance and timer transition rules.

AIGame AIFinite-State MachineAlgorithmsPathfinding

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)