realization of the dungeon


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Temple Termagant

Posts: 7

Joined: Friday, 18th January 2013, 03:35

Post Tuesday, 12th February 2013, 20:57

realization of the dungeon

I'm interested in roguelikes realization. How the dungeon map is made in DC:SS, what is its data? (I don't undertood a lot from code diving.)
For example, in Rogue map is a complex of "rooms" that represented by coordinates of their upper-left corners and their width and height.
For another example, we can store level data in two-dimensional array(s) that filled by tiles. What system is using in Dungeon Crawl?
maybe i'm placing this topic in wrong forum section... if so, excuse me please.
p.s. sorry for my bad English.

Dungeon Master

Posts: 1531

Joined: Saturday, 5th March 2011, 06:29

Post Tuesday, 12th February 2013, 21:39

Re: realization of the dungeon

It's a combination of terrain generated randomly by code, and a lot of typically much smaller hand-crafted maps using a special map syntax (these are called "vaults" and are placed randomly within the bigger code-generated layouts).

This is a very simple explanation but it's mostly the case, there are some exceptions.

A lot of the layout code is in crawl/dat/des/builder/layout*.des, and a little bit in crawl/dat/dlua/*.lua. All the hand-crafted vaults are in *.des files in other subfolders of dat/des. As you might guess from this, a lot of the layout code is written in Lua, although some of the layouts call C++ functions in the Crawl source code.

If you want to understand the vault syntax better you can start with the online reference: https://crawl.develz.org/wiki/doku.php?id=dcss:help:maps

It's very easy to start making these maps and new contributions are always encouraged (although read the guidelines first!); the more vaults get added the more interesting, diverse and surprising the levels can become.

For this message the author mumra has received thanks:
sidav

Temple Termagant

Posts: 7

Joined: Friday, 18th January 2013, 03:35

Post Wednesday, 13th February 2013, 03:58

Re: realization of the dungeon

Thanks. DC saves and works with each tile? or there is more abstract system like one in Rogue?

Dungeon Master

Posts: 1531

Joined: Saturday, 5th March 2011, 06:29

Post Wednesday, 13th February 2013, 11:55

Re: realization of the dungeon

sidav wrote:Thanks. DC saves and works with each tile? or there is more abstract system like one in Rogue?


Yeah, there's a 2D array of tiles (and other properties) for each level.

For this message the author mumra has received thanks:
sidav

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 121 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.