Below you will find pages that utilize the taxonomy term “Boss”
Posts
read more
Lua for Game Development — Chapter 14: Combat AI, Behavior Trees, Utility AI & Enemy Design
Combat AI determines the challenge, pacing, and tension of any action game.
Modern games use:
- State Machines (simple AI)
- Behavior Trees (modular, readable)
- Utility AI (dynamic decisions)
- Blackboards (shared memory)
- Squad AI (formations, flanking, roles)
- Boss AI (scripted phases + BT nodes)
Lua’s flexibility makes it ideal for building AI layers.
This chapter builds:
- Enemy archetypes
- Finite State Machine (FSM) combat AI
- Behavior Tree engine
- Utility-based decision system
- Aggro & threat systems
- Group tactics (flank, assist, swarm)
- Boss scripting (phases, triggers, timelines)
1. Enemy Archetypes
Define enemies in data: