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

Influence map layers


So far, we've talked about different layers of the influence map without showing you how they can be useful. Currently, the red influences used on the influence map are negative values, while the blue influences are positive values. When combined together on a single influence map layer, the boundary where blue meets red becomes the neutral influence of 0. While this can be very useful, we might want to see the total influence of either the negative influences or positive influences.

Combined negative and positive influences

Using a separate layer on the influence map, we can see the full negative influence unaffected by positive influences.

Only negative influences spread to their maximum

We can also do this for the positive influences and use an additional layer that maps only positive values.

Only positive influences spread to their maximum