Here's how I define the population of a planet. Each "Proportion" n...
5,395
0
Advertisement
Here's how I define the population of a planet. Each "Proportion" number represents how much of the whole the character takes up. So an "EnemyBlob2" with an 8 is 8 times more likely to appear than an "ItemRevealCave" with a 1.
So at runtime I just add up all the numbers, pick a random in that range, and grab whatever lives in that part of the range. #GameDevelopment
from John Hattan's Public Feed http://j.mp/2P1DcPD
Previous
Here's "Desert Planet" populated from the panel I posted earlier. I...
Next
Okay, so here's the Java Mess as I think it currently stands.
Advertisement
Advertisement
Advertisement
Discussion