Advertisement
OfficialMango

Hyperion Details

Feb 10th, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. ///THE ELEPHANT IN THE ROOM///
  2. How should the galaxy generation be controlled? Should the user have full control into how the galaxy should be created meaning each player has a different playthrough?
  3. Or should the Developer (Me) decided what the galaxy is and what planets everyone sees? I intent to add lore to the game, however ,letting the user create everything might hinder that objective.
  4. The thought however that each playthrough is unique and that the mechanics are still the same is a brilliant idea and for sure one the player would want but how do can I combine both a
  5. Lore and a Unqiue playthrough in one go without having to make Special systems for special nations with all unqiue bells and whistles, a system like Elite Dangerous with a mix of Stellaris...
  6. would be the solution.
  7.  
  8. Since the galaxy will be somewhat large (not 1:1 scale ofcourse) I could define a Base location which will ALWAYS be the same for each player, this is rather easy to implement but
  9. my main concern then would be "What about the other stars? Its easy to plot a bunch of them in the Galaxy but how would I connect them with Hyperlanes?" This issue would be eliminated
  10. if the developer(me) would decided what stars exist and what don't. As creating another algorithm with smart, fast and reasonable Hyperlane creation is very time consuming...
  11.  
  12. ///THE LOGICAL STEPS///
  13. Each star system will have an System Planets Struct, before we can populate it with random values however, we need to control the randomness...
  14. We first have to define what star type the star is,secondly we need to define how many stars the system has, we will use a random int for such decisions, after that we
  15. define Elliptical orbits with varying severity (pretty much circular until extremely Elliptical). The randomness can choose a base coordinate from the creating the ellipse in order to plot the invidivual planets.
  16. just make sure that the planets don't take X amount nearest points (Positive and negative).
  17. from their own point.
  18.  
  19. ///THE NEAT DETAILS///
  20. Secondly we need consider the logical reasons to create individual planets such as if they are under 500 units in distance towards the center it must be a lava planet
  21. and if its something like 900 units away it must be a Snow/ice planet because yeah thats how planets with a relation to the sun work. TBC...
  22.  
  23.  
  24. Generate Systems -> Get Each star -> Get System Planets Struct -> populate with random values -> Save Data
  25.  
  26. Open level -> Read Data -> Apply to Solar System Level -> Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement