This Godot addon provides tools to generate procedural 3d scenes (such as dungeons) from modular assets.
The addon itself defines the following scripts:
- modular_room.gd: a script that is used to define connectable and configurable rooms
- modular_room_exit.gd: a script that is used to define the exits of rooms. When building a dungeon, exits help defining the rooms positions and orientations. Exits must be direct children of the room scene.
- modular_room_object.gd: A script that is used to define the location of objects (that could be doors, traps, treasures, enemy spawns, ...) in a room. Configuring a room consists in choosing an object for each object location in the room.
- generator.gd: a script that defines a scene generator. It must have a "rooms" child whose children are the available rooms, and an "objects" child whose children are the objects categories whose children are the objects scenes.
The demo shows all available features.
To generate a dungeon, open the test.tscn scene, and select the DungeonGenerator node. The 3d view toolbar will show 3 buttons:
- Generate will start generating a dungeon (or continue a previously stopped generation).
- Stop will stop generation.
- Clean will delete the generation result.
The demo uses the following assets: