Skip to main content

Island regions

Example of selecting different parts of an island level
Example of selecting different parts of an island level

There is an Island Region Post-Processor that makes it possible to generate just a smaller part of a level - a corner, a half or any custom sub-region. This works best with island levels because each part of an island contains water placed at a particular position.

How to use

Under the Generator game object, create an empty IslandRegion game object and add the Island Region Post Processor component to it.

Post-processor setup
Post-processor setup

In the post-processor component, there are 2 properties that you need to configure. First, the Elevation Noise property should be set to the noise that you use to generate the island shape. Second, the Region Mode needs to be configured to match which part of a level you want to generate:

  • Random Corner - Generates a random corner of the level, with a width of 50% of the original level
  • Random Edge - Generates a random edge/side of the level, with a height of 50% of the original level
  • Custom - makes it possible to specify a custom part of the original level

For example, if you have a level of 100x100 tiles and you want to generate a 50x50 corner region of that level, you need to set the generator to 50x50 tiles and then either use the Random Corner region mode or set the mode to Custom and use one of these:

  • Bottom-left corner - Position (0,0), Size (0.5, 0.5)
  • Bottom-right corner - Position (0.5,0), Size (0.5, 0.5)
  • Top-left corner - Position (0,0.5), Size (0.5, 0.5)
  • Top-right corner - Position (0.5,0.5), Size (0.5, 0.5)

Image of different configurations of the post-processing
Image of different configurations of the post-processing