So I’m making a game that’s basically armored core meets eve and I know the math and the physics but I’m a complete and utter noob at coding and really don’t know how to make the steps in the right direction is there a video a site or anybody with the proper information id really appreciate the help
if i had no clue of coding, i wouldn’t start with procedural generation.
the next thing is: the milky way is large! and has a huge amount of objects in it (even if you just count the stars: 2.510^11 (an int can hold numbers up to 210^9. so you can’t hold all the stars in a single array)
but maybe you just want to get the idea, i’d generate it like this:
start with the center, some kind of “black hole object”, this is mostly just a collider and you i would not make it accessible for the player.
now generate x-many (4 <= x <= 12) splines from the center outwards in a spiral pattern. mark spline 0 and x/2 as “main-arm”, they will generate more star clusters. follow every arm and generate star-cluster objects along the splines.
pick each star cluster set its sol-mass to y (5 <= y <= 30). now generate in the range of this star-cluster stars-systems add to them a sol-mass between 0.5 and 5. decrese the sol-mass of the star cluster by this amount. if you reach 0 stop generating stars for this cluster.
for each star-system: generate a star: 50% single stars 45% dual-stars 5% black holes. based on the mass of the star-system generate a number of planets
well, there are many things missing to create such a level-generator. it is much work, but it isn’t “hard”. you just need to small steps. it does not matter what you want to code, you can often archive it with abstracting the problem, put it in many simple to solve part problems. think of solving those part problems step by step and putting everything together (in the right order :P)
thank you both for those links and tips I see ive got homework (I thought unity’s tutorials were a myth lol) I was hoping for links like those or a finished project I could learn from. I’m currently going for a map like elite dangerous’ but not as detailed so 3D and 1:1