Cave Room: Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "{{RoomInfobox|image=RoomGen Cave.png|internal_name=RoomGenCave}} The '''angled hall''' 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..."
 
Imbion (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{RoomInfobox|image=RoomGen Cave.png|internal_name=RoomGenCave}}
{{RoomInfobox|image=RoomGen Cave.png|internal_name=RoomGenCave}}


The '''angled hall''' is a type of [[room]]. It is a blob generated using perlin noise.
The '''cave''' is a type of [[room]]. It is a blob generated using perlin noise.


== Usage ==
== Usage ==

Latest revision as of 14:55, 21 October 2025

RoomGen Cave.png
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.