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

Creating a brain


So far, we have a very basic binding between an agent and an animating mesh. Now, we are going to implement two different approaches that will help us have the decision logic control the agent's animated state machines.

Approaches for mind body control

The two main approaches we will be implementing are direct control over the ASM by the agent, where the decision logic can directly control which state the ASM transitions to, and a second approach where the agent issues commands to another system that is responsible for figuring out which animations are appropriate to be played for the agent.