[20 / 5 / ?]
I'm back again with a new version of my galaxy generation program.
This update is pretty major. First off I decided to just jump in and start defining planetary properties. Feel free to look at the code, but in essence I'm just randomly generating a mass from a uniform span of masses of known exoplanets for rocky planets, and then the same with gas giants. The radius is determined by this:
http://phl.upr.edu/library/notes/standardmass-radiusrelationforexoplanets
So now we have more well-defined planets. It's not 100% accurate to what we see in exoplanets, but it's good enough for now, as I tried to avoid just freezing up with information overload.
I also changed the way the information is written to file. Now instead of one giant file you'll get a whole directory structure!
Future goals includes adding some more things I can infer from mass and radius, e.g. gravity. Atmosphere pressure is another major one, along with star magnetic fields, because then I can do something really cool: see what generated planets *could* be a birthplace of intelligent life.
Here's the code:
>http://pastebin.com/dPTuE3WP
This update is pretty major. First off I decided to just jump in and start defining planetary properties. Feel free to look at the code, but in essence I'm just randomly generating a mass from a uniform span of masses of known exoplanets for rocky planets, and then the same with gas giants. The radius is determined by this:
http://phl.upr.edu/library/notes/standardmass-radiusrelationforexoplanets
So now we have more well-defined planets. It's not 100% accurate to what we see in exoplanets, but it's good enough for now, as I tried to avoid just freezing up with information overload.
I also changed the way the information is written to file. Now instead of one giant file you'll get a whole directory structure!
Future goals includes adding some more things I can infer from mass and radius, e.g. gravity. Atmosphere pressure is another major one, along with star magnetic fields, because then I can do something really cool: see what generated planets *could* be a birthplace of intelligent life.
Here's the code:
>http://pastebin.com/dPTuE3WP
