Jump to content
  • Advertisement
  • entries
  • comments
  • views

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

Sign in to follow this  


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

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!