Reader small image

You're reading from  Learning Game AI Programming with Lua

Product typeBook
Published inNov 2014
Reading LevelBeginner
PublisherPackt
ISBN-139781783281336
Edition1st Edition
Languages
Right arrow
Author (1)
David Young
David Young
Right arrow

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

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Game AI Programming with Lua
Published in: Nov 2014Publisher: PacktISBN-13: 9781783281336

Author (1)