Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi all,
It took me a bit more time to fix the biggest problems after showing the initial generator in #1557 .
Here is the pr but keep in mind it is still a work in progress.
There is enough that can be improved/fixed.
The code that I added in
core/randomandmap/randomreally could some improvement.However, sharing the code gives you the opportunity to give feedback as well :)
The generator has the following options:
After generation there are two options: Open in the editor to further change the scenario, or start game to directly play the scenario.




Option to change climate:
Large map with river generator:
Scenario after using the start game option:
Most of the added lines of code are in the ui of the map generator window.
The river generator uses a combination of perlin noise for the trees, rocks, and meadows, as well a random walk for the river. The river algorithm creates a path for the river and is widened using a somewhat random kernel that move over the path of the river.
Known problems:
I'll keep working on improvements.
I'm looking forward to any feedback :)