Skip to content

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

Open
tomislavrekic wants to merge 2 commits intoSebLague:masterfrom
tomislavrekic:feature-fixedmap
Open

Fixed map size, reworked assets, falloff and height map generation#50
tomislavrekic wants to merge 2 commits intoSebLague:masterfrom
tomislavrekic:feature-fixedmap

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