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

Spawning improvements #7

Open
nihal111 opened this issue Mar 22, 2017 · 5 comments
Open

Spawning improvements #7

nihal111 opened this issue Mar 22, 2017 · 5 comments

Comments

@nihal111
Copy link
Member

I'd like to better understand and improve the spawning algorithm.
Currently, I believe they spawn randomly and never despawn. This probably would mean after hours of exploration, there would be a lot more deer in the world than we'd want. We should probably look into having some spawn limit in place and having some despawning (based on range from player, or population in a region).

@nihal111
Copy link
Member Author

Can we get some discussion going here @flo @Cervator @TheJYKoder

@skaldarnar
Copy link
Contributor

skaldarnar commented Mar 23, 2017 via email

@flo
Copy link
Contributor

flo commented Mar 23, 2017

The deers get only spawned when a chunk gets generated. So the amount of deers is limited.

I think it is not so unreasonable to let deers spawn only near the player if deers would despawn based on player distance as well. However it might be more fun if we let deer persistent as they are now and would give them a suspended state once they are farer away from the player for performance reasons.

@flo
Copy link
Contributor

flo commented Mar 23, 2017

Oh and deers get (or should at least) unloaded with chunks so it's not infinite.

@niksoc
Copy link

niksoc commented May 8, 2017

This is an old issue, but it's still open so I guess I can add my 2 cents? How about making the number of animals in a region a function of the region characteristics? eg. for a herbivore like a deer the population can depend on the vegetation, water, shade etc, for a carnivore, it can depend on the number of herbivores. This way we can get a realistic ecosystem going (once there are more animals), and since it's a deterministic function of the map, we can spawn/despawn the animals when the player is not looking.

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

No branches or pull requests

4 participants