Skip to content
Zicklag edited this page Aug 9, 2022 · 1 revision

Implemented in enemy_ai.rs.

Boxes represent components on the enemy fighter entity.

graph TB

idle["`Idling` Without `EnemyTarget`"]
targeting[With `EnemyTarget`]
moving[`Moving` Toward Target]
check{Check Proximity}
attack[`Attacking`]

idle -- "set_target_near_player()" --> targeting
targeting --> check
check -- "Far from target" --> moving
moving --> targeting
check -- "Close to target" --> attack
attack -- "Attack finished" --> idle
Loading
Clone this wiki locally