Game Development with raylib C++ — Day #5
Finite State Machine
7 min readNov 9, 2021
In the last article, we introduced Agents and Behaviours to the project and had agents following a mouse, seeking a target and fleeing from a target behaviour. In this article, we will expand on this work by implementing a Finite State Machine. The beauty about this implementation is we will do it as classes switch of the ugly switch statement.