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

Added a non constant Temperature and Humidity Facet Provider #58

Closed
wants to merge 2 commits into from

Conversation

agent-q1
Copy link
Contributor

@agent-q1 agent-q1 commented Apr 20, 2020

Temperature and Humidity Facet Provider

Fixes #38.
Currently, the Temperature and Humidity are fixed at 0.6f and 0.1f respectively. This PR adds some variability to it by adding a weighted probability that ensures that the resulting Biome is a Desert.

Copy link
Collaborator

@AndyTechGuy AndyTechGuy left a comment

Choose a reason for hiding this comment

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

For world generation stuff, it is standard to use noise-based float values over random float values. This is done so if the same seed is used in world generation, the same world will be created every time.
Please replace the random.nextFloat() statements with some form of noise sampling. This section of the world generation tutorial may be a good thing to reference 😄

@@ -65,7 +67,7 @@ public void process(GeneratingRegion region) {
// TODO: Setup humidity
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove TODO comments like this, since the humidity/temperature is now set up by this PR.

@agent-q1
Copy link
Contributor Author

Thanks for the review!
I thought subsampling took care of that. I'll make the changes though.

@jdrueckert jdrueckert closed this May 21, 2020
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.

Diversify the map with new biomes
3 participants