Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///THE ELEPHANT IN THE ROOM///
- 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?
- 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.
- 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
- 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...
- would be the solution.
- 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
- 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
- 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...
- ///THE LOGICAL STEPS///
- Each star system will have an System Planets Struct, before we can populate it with random values however, we need to control the randomness...
- 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
- 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.
- just make sure that the planets don't take X amount nearest points (Positive and negative).
- from their own point.
- ///THE NEAT DETAILS///
- 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
- 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...
- Generate Systems -> Get Each star -> Get System Planets Struct -> populate with random values -> Save Data
- Open level -> Read Data -> Apply to Solar System Level -> Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement