zac-garby / solar-system

A strategy/simulation game.
MIT License
33 stars 17 forks source link

Add a carrying capacity property to planets #27

Open zac-garby opened 7 years ago

zac-garby commented 7 years ago

Now population growth is implemented, population always tends to end up at the same number (unsurprisingly). This is on about line 111 in planet.cpp.

The carrying capacity is calculated by MAX_POPULATION * 0.7, meaning it's the same across all planets. It might be an idea to calculate it based on the planet's radius.