Here's how I define the population of a planet. Each "Proportion" n...

Published April 10, 2019 Imported
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

View the full article

0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement