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

Chapter 8. Perception

In this chapter, we will cover the following topics:

  • Creating, sending, and receiving events

  • Giving sight and sound senses to agents

  • Creating teams of competing agents

  • Updating behaviors with event messaging

  • Managing agent communications through messaging

Currently, our agents have a near-omnipotent view of the sandbox. Through the use of direct enemy position selection, our agents respond so quickly and precisely that players might call this cheating. To create more believable agent interactions and responses, we need to implement perception. Essentially, this means giving our agents the ability to see, hear, and communicate with each other.