Cave Room
| Internal Name | RoomGenCave
|
|---|
The cave is a type of room. It is a blob generated using perlin noise.
Usage
The range of width and height serves as the absolute minimum and max tile size that the blob will generated to try and fit in. For example, say each parameter has a range of width 4-10 and height of 6-13. The random number generator rolls width 7 and height 11 to be generated. So, the algorithm will pick a blob that will fit into a rectange with width 7 and height 11.
If no valid blob is able to be generated within the room's selected parameters, the generation algorithm falls back to a square room of the size that was attempted. The failure rate of the algorithm increases the smaller the total area of the rectangle of the selected dimensions is, as there is less likely to be a blob that fits into those dimensions.

