I am trying to create a galaxy map and I would like input on how I’m thinking of doing it. And, if someone has a better idea, please post… Here goes:
- Create a grid of a fixed size for the world map that would be used to spawn suns. Like a giant chess board. Might stack Z though for more 3d galaxy. Each grid section would be a “sector”. (for lack of a better word!) *
- Inside each sector generate several random locations and store in an array.
- When spawning a sun for each sector, randomly pick a location from the array in #2. (use a structure for the information about the sun (size, color, etc.))
- Store location of spawned sun in another array for planet placement within each sector
Some of the above I do not know how to do, so before I go and spend a bunch of time learning I would like to know if my idea is even decent, or down right stupid… All thoughts are welcome!
PS: * no idea on how to actually do. <grins>
PPS: I will only have a max of 100 solar systems. Each sector will only have one sun.