Blob Water Step

From PMDOWiki

The Blob Water Step is a floor generation step. Its typical priority is 3.

Usage

This step is used to create a number of blobs of the specified tile on the floor. Any type of tile may be used, such as water, walls, and grass.

Generation Algorithm

Every time a blob is generated, the algorithm starts with a NxN tile area of blank space, where N is the GenerateScale MAX. This is the range of tiles it is allowed to generate in.

The algorithm will randomly spray tiles, and then use ceullar automata iterations. This results in a black and white tilesheet of many blobs. Then, each individual blob is examined and checked to see if it falls within the range of AreaScale in terms of the total area. If such a blob is found, then the blob is taken to be drawn on the map.

If no such blob exists, the entire field is seeded again with smaller dimensions, multiplying the length and width by 0.75. This process of retries will continue until the size becomes smaller than GenerateScale MIN.

Fields

Blobs

The min and max amount of blobs to be placed.

Generate Scale

The selected NxN range of area that may create the blob.

Area Scale

The NxN range of acceptable area the blob is allowed to take.

Blob Stencil

The conditions that must be true (or false) in order for a blob to generate in a selected space. For more information, see stencils.

Terrain

The type of terrain that will be drawn. Typically is water, but any terrain can be used.

Terrain Stencil

The conditions that must be true (or false) for the terrain to be drawn on a selected area. For more information, see stencils.