Treasure of Tarmin Dungeon Generator
Dungeon generator for Dungeons and Dragons: Treasure of Tarmin (1982).
Treasure of Tarmin is a first-person Intellivision dungeon crawler. It generates its random dungeon from a set of hand-authored templates. Brown doors are normal doors and grey ones are hidden.
How it Works
Compared to a dungeon generator like Hack, Tarmin’s generator feels a little less procedural. It starts with pool of sixteen chunks of dungeon that it arranges and flips to create the random level. It’s still an effective technique but one that’s going to have more authored results.
The Chunks
Each dungeon is built from these sixteen chunks, hand-made by the original developers.
The High Level Algorithm
The workspace is 12 by 12 tiles. Then each of the chunks is 5 by 5. Here’s how it fills up up the space to make a level:
- Pick four chunks from the pool. You can pick the same type more that once.
- Place each chunk in the center of the workspace to form a central quad, with a 1 tile gutter running a long the perimeter.
- The chunks are the mirrored in a deterministic way.
- North East - same as the reference
- South East - mirrored vertically.
- South West - mirrored vertically and horizontally.
- North West - mirrored horizontally.
- Then there’s a corridor that encloses the four chunk quad. And that uses up the full workspace.
- Finally the rooms are linked to each other and the corridor.
- There are fixed linked points and a plain, secret or open passage is chosen for each.
Example floors






