Hello.
In my progress to make 2d top down game i got stuck on a topic about resource refreshment / regrowth(The time period is bronze age,iron age)
I have a RTS kind of structure, you have units that can gather resources from map, but the map/resources will run out eventualy, and i want a way for them to replenish so i thought about nature growing back, it will add a nice spice.
My issue is that, i am kinda rusty on technical terms, and have found absolutely nothing while googling.
How i currently achieve resource regrowth is that i just place resource at random time, on map which provides quite unsatisfying results.
I thought about making areas for each specified stuff can spawn, so berry bush cannot just appear anywhere else but it regrows at specified place,(in radius of x). In the end the formula is will be quite fast and will provide with regrowth system but that is not very innovating, i think i could do more.
So i thought about making the nature expand logic for each biome separately. The nature would expand as such:
If there is a patch of dirt in forest area, and i do growth on it i would check whats nearby?(i found: grass, apple tree, flowers, berry bush). I would tier this stuff so i could have multiple stuff on one tile for, but no matching of type.
auto grass = 1;
auto flowers = 2;
auto berryBush = 3;
auto tree = 3;
From the example we can see that "berryBush" and "tree" could not occupy one tile at same time, but a tree, grass and flowers could.
This system could be done but the process consumption would be high.
Thus i am looking for alternatives, so if you have suggestions or if you know what a generic term it is so i could google it would help allot.