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

Make trees generate similarly to terrain, and make a proper game seed that drives both. #142

Open
mortizzle opened this issue Sep 13, 2020 · 2 comments

Comments

@mortizzle
Copy link
Contributor

No description provided.

@mortizzle mortizzle changed the title Make trees generated similarly to terrain, and make a proper game seed that drives both. Make trees generate similarly to terrain, and make a proper game seed that drives both. Sep 13, 2020
@davidwengier
Copy link
Owner

Trees already have a Seed, so what needs to happen here is that GameManager needs to also have a seed, and then a tree's seed should come from a random generator that is seeded with the game seed. It's probably easiest and best to extract all of that to an IRandomNumberGenerator service that can be injected.

The game seed needs to be reset on Clear All, and eventually serialized, though that doesn't have to be part of this issue.

@ScottHolden
Copy link
Contributor

#185 solves most of this, it doesn't implement a game-wide seed, but rather focuses on seed-driven entities saving their seed.

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

No branches or pull requests

3 participants