Skip to content

Add star-mass-test#90

Open
lumi-a wants to merge 1 commit into
mainfrom
star-mass
Open

Add star-mass-test#90
lumi-a wants to merge 1 commit into
mainfrom
star-mass

Conversation

@lumi-a
Copy link
Copy Markdown
Collaborator

@lumi-a lumi-a commented Mar 11, 2025

This test resolves this comment: #80 (comment)

It tests whether the star contains > 99% of the mass in the universe, to justify it being immobile (I wonder why, though, would it be that bad to have the star be influenced by planets' gravity?). The test doesn't pass yet because the star contains about 0.2% of the mass in the small universe, and 10% of the mass in the large universe (I guess this is slightly random due to varying planet-sizes), so before we merge this, we'd probably have to make the stars larger or planets smaller.

You probably have a way better idea about what the game should feel like, would you mind adjusting the universe-constants to your tastes until the test passes, or decide that the "> 99% of mass" criterion is not necessary?

This test does not pass on this commit yet, but we should be able to get it to pass by increasing the universe's star-size.
Copy link
Copy Markdown
Owner

@Tim2othy Tim2othy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have nothing against the star being influenced by planets gravity. Maybe we should do that instead of adding this test? If the star only contains 10% of the mass right now, then the game probably also wouldn't be fun if it was 99% of the mass, so maybe we shouldn't go for this much realism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants