Skip to main content

Edgar - Unity

Configurable 2D procedural level generator for Unity

Easy to use

Well, it's not a one-click setup, but after you read about the basic concepts of the generator, you should be ready to easily generate your first level.

Packed with features

The generator gives you complete control over the structure of levels and look of individual rooms. Generate dungeons, platformers or even isometric levels.

Easy to customize

It's easy to customize generated levels. Add enemies, treasures, secret rooms. Almost anything is possible!

1. Create room templates

The first step is to create so-called room templates which describe how individual rooms look and how they can be connected to each other. The basic visuals are created with Unity Tilemaps but it is also possible to include game objects like enemies, loot, etc.

2. Describe level structure

The second step is to create a so-called level graph. The generator comes with a graph editor where you can specify how many rooms you want and how they are connected. You can also choose that some rooms will have different room templates than other rooms - e.g. a spawn room will look different than a boss room. Just make sure that the graph is not too big/complex.

3. Generate levels

The last step is to add the generator component to a game object, assign the level graph from the previous step and you are ready to generate levels.