Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

2: Influence areas

Each animal in my game should have an area of influence. When a player places an animal on the game field, it consumes all available food sources in its influence area.  

I like to have flexibility in all systems which I develop and that’s why I wanted to be able to change the influence area right in the Unity inspector. To implement it, I use a plugin from GitHub, which allows editing 2D arrays in the inspector.

Then I added visualization. During that, I resolved a lot of bugs. For example, the influence area shouldn't cross the boundaries of the game field, which was the case before the refactoring.