Tile maze function

This function enables you to generate a random maze using predefined blueprints.

Settings

Number of Rooms width and length

This feature enables you to specify the size of the dungeon, as well as the desired number of standard rooms within it.

Having 5 rooms in width and 5 rooms in length allows for a total of 25 rooms: 5 * 5 = 25.

Room Width & Lendth / Corridor Size

You must specify the dimensions of your blueprints, as well as the size of the corridors.

In the template Map, the base size is 21 blocks by 21 blocks, with a corridor of 11 blocks.

This enforces the standard size of rooms to be adhered to. While it is possible to have different sizes, certain rules must be followed.

It is not possible to have multiple corridor sizes in this generation.

Larger rooms

To create larger rooms, the parameters NB_Width and NB_Length of blueprints are utilized. These parameters determine how many times the room is enlarged compared to the standard room defined earlier. This does not specify the size of the room in blocks, but rather the multiplier applied to the default room size.

For example a room with NB_Width = 2 and NB_Length = 1:

It is essential to consider the corridors between each room, as well as the blocks that are removed to create these corridors.

To create larger rooms, the plugin connects multiple rooms together within the grid and positions your large room in this area.

Room lists

There are three lists: one for corridors, defining each blueprint for corridor types that may appear during generation; another for rooms, defining each blueprint for room types that may appear; and finally, special rooms, which outlines special rooms that may appear either obligatorily or only once.

Algorithm

There are several types of algorithms, each with its own specific characteristics. Each algorithm will affect the layout of the corridors, not the rooms.

For the overview of each algorithm you can use the following application The shown demo application can be downloaded here. (Java 8 or later runtime needed.) The github of the original project!

How it work?

To put it simply, the function generates a maze of X by Y rooms thanks to different algorithms that you could choose.

Then the plugin will first place the special rooms which can only appear once. Once all the special pieces are placed, the plugin will fill the gap with the normal pieces and finally the plugin will connect all rooms with corridors.

Last updated