Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int systemMass as rndm(250,500)
- int planetRatio as rndm(1,10)
- int moonRatio as rndm(5,20)
- int asteroidRatio as rndm(15,60)
- int totalRatio = planetRatio + moonRatio + asteroidRatio
- //this stuff ? yeah, it makes it so the ratio total is equal to our system mass, so we can make a long list of planety stuff
- double divThing = systemMass / totalRatio
- planetRatio *= divThing
- moonRatio *= divThing
- asteroidRatio *= divThing
- for i = 1 to planetRatio{
- makePlanet();
- }
- for i = planetRatio to planetRatio + moonRatio{
- makeMoon();
- }
- for i = planetRatio + moonRatio to asteroidRatio{
- makeAsteroid();
- }
- // you have now used up your system mass with an easily distributable selection of celestial bodies, congratulations, you are win
Advertisement
Add Comment
Please, Sign In to add comment