EGS Name: iExpulsion
Package Name: Dungeon Builder
Package Description: Generates dungeons from a customizable list of modular tiles.
Installation instructions
- Select ‘DungeonGenerator’ in the Templates panel and place it into the world.
- Configure Width and Length to your desired size.
- Configure TileSize and TileHeight to better match your own tiles.
- Replace the default tiles with your own walls, floors, ceilings and an entrance if enabled.
- Play and explore your newly generated dungeon!
Package Contents
Templates
-
[ DungeonGenerator ]
- This holds everything needed to start using the generator with default settings.
-
[ TilePrototype_Wall ]
- A default 28x2x24 voxel wall which can be duplicated to use as a starting base for your own tiles.
-
[ TilePrototype_Floor ]
- A default 28x28x2 voxel floor which can be duplicated to use as a starting base for your own tiles.
-
[ TilePrototype_Ceiling ]
- A default 28x28x2 voxel floor which can be duplicated to use as a starting base for your own tiles.
Scripts
-
[ DungeonGenerator ]
- Handles generating the dungeon into a grid.
-
Custom Properties
- Width - Generation width, forces an odd number with a minimum of 3.
- Length - Generation length, forces an odd number with a minimum of 3.
- Labyrinth Mode - Generates a room in the center, with one path leading in.
- Labyrinth Size - If using Labyrinth Mode, sets the size of the room. When using Labyrinth Mode ensure your width and length are multiples of 4 larger than the Labyrinth Size. For example if the Labyrinth Size is 5, then supported width and lengths will be 9, 13, 17 and so on.
-
[ DungeonConstructor ]
- Handles generating the dungeon’s world representation based on the generated grid.
-
Custom Properties
- TileVoxelSize- The width and length of your floor and ceiling tiles in voxels.
- TileVoxelHeight - The height of your wall tiles in voxels, or simply how high you want the ceiling to start.
- WallOffsetModifier - A simple nudge to the walls placement to avoid z-fighting on your tiles.
- TileMeshWall - An array of possible wall tiles to pick from when generating.
- TileMeshFloor - An array of possible floor tiles to pick from when generating.
- TileMeshCeiling - An array of possible ceiling tiles to pick from when generating.
- AddEntrance - Removes a wall on the first tile and replaces it with an Entrance Tile is supplied.
- SeamlessTiles - Offsets tiles by 4 voxels to allow the UVs on voxels to line up.
Images