Dungeon Generator (Templates)

Discuss Scirra's 2D Asset Store

Post » Mon Oct 12, 2015 1:55 pm



Dungeon Generator — Now for sale in the Scirra Store!
https://www.scirra.com/store/royalty-free-game-templates/dungeon-generator-1500

Perfect for generating dungeons for roguelikes, Metroidvania platformer levels, twin-stick shooter arenas or Zelda-like adventures. Levels that take seconds to generate - and hours to navigate!

What can this dungeon generator do?

It generates perfect mazes - all cells can be reached from all other cells using only one path. There is only one path from any one cell to any other cell.

It can create levels with multiple sizes of rooms, and has many ways of controlling the room size: cell sizes, minimum and maximum dimensions, average room size, all these can be changed. The levels can be limited in size either by the number of rooms they take up, or simply by the size of the grid on which they are drawn.

It can create levels with logic: a theoretical 'path' can be used to break the level up into zones, set the locations of objectives, and so-on. There are no loops - no ways for the player to short-cut the intended progression.

How does it work?

It works by generating a grid on an array. It fills this grid with boxes of various sizes (according to variables set by the user, or by their game), and then selects a 'starting point'. Once it has selected a starting point, it begins finding paths out from that point. It continues either until it has created the correct number of rooms required (again, set by the user, or their game), or until it has run out of available spreading opportunities.

It's not always 100% perfect - because of the variety of sizes of rooms, sometime a dungeon may not reach the required number of rooms. If this occurs, it is recommended a re-roll of the generator take place. With careful use of the included parameters, however, this should not be a significant issue.

Coming in at under 100 events, this template can even be employed by users of the free edition!



Use this topic to leave comments, ask questions and talk about Dungeon Generator
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 2 guests