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

Fixed map size, reworked assets, falloff and height map generation #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomislavrekic
Copy link

@tomislavrekic tomislavrekic commented Jan 12, 2024

Added a fixed map size, which can be modified in the MapGenerator options. Chunks inside the map will be generated as normal. Chunk on the border have falloff applied so together they behave like a coastline. Chunks outside the border will be generated as ocean chunks.

HeightMapSettings reworked to allow stacking of multiple layers of noise. NoiseSettings now a standalone asset.

Note: The project i did this in is Unity version 2022.3.16f1. I am unsure if I should include all the meta files, if I shouldn't please let me know and I will exclude them. The code should work between different Unity versions anyway.

Added fixed map size which can be changed in the MapGenerator. FallOffGenerator is used to create a boundary around the map. HeightMapSettings reworked to allow stacking of multiple layers of noise. NoiseSettings now a standalone asset.
@swordofbling
Copy link

Very cool, small issue with your meta files all the script refrences are missing on the game objcets so you may need to update them

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