Influence maps

from Red Blob Games
Move the circles around. Code is a little buggy.

An influence map can be used to analyze a map for use by the AI. For example, in an RTS, you could make one influence map for enemies, one for allies, and one for resources. Then your ally AI could find a spot with high resource density (it’s valuable), low ally density (nobody’s already there), and low enemy density (the danger is low).

Email me at , or tweet to @redblobgames, or post a public comment: