Mechanic · enemies & ai
Enemy AI
The rules an enemy follows each frame: how it moves, when it attacks, and how it reacts to the player and the level.
Enemy AI is what a computer-controlled enemy does once it is in play. Each enemy type usually runs a small state machine: walk until a wall, turn, fire on a timer. Enemy targeting covers how enemies choose and aim at a target, and attack pattern the sequences bosses run.