In this chapter, we explored the general background behind any behavior tree implementation. We have seen what a BT is, what their basic components are, and how can we use a BT to describe game character behavior. Then, we implemented a demo using a free plugin called Behavior Bricks. In the demo, we created the behavior for a simple scenario: the player and a patrolling robot. We also implemented a day/night cycle to spice up the scenario.
Behavior Trees are the cornerstones of modern AI for game characters. Implementation details and deeper examples would require a full book to explain fully. Luckily, the web is full of resources for the curious reader.