Book Image

Learning Game AI Programming with Lua

By : David Young
Book Image

Learning Game AI Programming with Lua

By: David Young

Overview of this book

Table of Contents (16 chapters)
Learning Game AI Programming with Lua
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with AI Sandbox
Index

Pitfalls of behavior trees


With reactive actions, behavior trees have shortcomings; they represent stateful logic very poorly. If statefulness needs to be preserved within a behavior tree, typically high-level conditions will dictate which branch is currently active. For instance, the noncombat and combat state of our agent isolates a lot of the behaviors that are available at any point in time.