Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Planet/Moon Spawning #39

Open
thombruce opened this issue Oct 7, 2023 · 1 comment
Open

Improved Planet/Moon Spawning #39

thombruce opened this issue Oct 7, 2023 · 1 comment
Labels
worldgen World generation

Comments

@thombruce
Copy link
Owner

The way planets and moons are presently spawned is awkward. We execute three systems in this order:

  1. Star spawning system places a star at [0., 0.]
  2. Planet spawning system places a planet in orbit around the star (could be generalised to any number of planets if not for animation system)
  3. A "demo" system places a moon in orbit around the planet (this could again be generalised for any number of moons around any number of planets)

The problem?

Too much repetition and far from enough generalisation. We should prefer something like a spawn_celestial_body function that can be reused. And we want to be able to generalise this to spawn bodies recursively (moons can have satellites too, binary star systems exist).

Prefer to be able to run one system that is capable of executing other functions to construct the system. The limiting factor to this is the necessity of "parent" bodies existence prior to querying when creating children; presently systems run in the same step are executed in parallel, so bodies end up missing.

@thombruce
Copy link
Owner Author

Related: #33

@thombruce thombruce added core New feature or request worldgen World generation and removed core New feature or request labels Oct 11, 2023
@thombruce thombruce added this to Verse Nov 6, 2023
@thombruce thombruce moved this to Inbox in Verse Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worldgen World generation
Projects
Status: Inbox
Development

No branches or pull requests

1 participant