https://github.com/luomu/dungeongen
Simple dungeon generator for Construct
https://github.com/luomu/dungeongen
Last synced: 2 months ago
JSON representation
Simple dungeon generator for Construct
- Host: GitHub
- URL: https://github.com/luomu/dungeongen
- Owner: Luomu
- Created: 2010-08-21T08:43:52.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-08-29T07:52:57.000Z (almost 15 years ago)
- Last Synced: 2025-01-28T10:29:27.049Z (4 months ago)
- Language: C
- Homepage: http://paahdin.com/projects/dungeongen
- Size: 242 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Dungeon Generator plugin for Scirra Construct.
Based on Jamis Buck's dnd-dungeon.The normal workflow is as follows:
- Set object mapping
- Set parameters
- Generate
- Build to layerIf you want more control over the process, you need to build to layer yourself using events or Python.
Parameters--
Size: dungeon width/height in tiles. Actual size can be +-1 tile to accommodate walls.
Tile size: Width/height of one tile in pixels
Seed: Number to base the randomization on. Same number = always same result.
Randomness: 0 - very straight corridors, 100 - lots of twists
Sparseness: 0 - very tight density, 100 - very sparse density
Dead end removal: percentage of dead ends the generator does its best to remove.
Room count: max/min.
Room dimensions: max/min height/width in tiles.Expressions available for all of the above. In addition you can fetch room top left x/y, bottom right x/y and a thin wall type between two tiles (none, wall, door).
For mazes (and other game purposes too) you can se the starting point and goal point of a maze.
Build to layout:
The dungeon is built to the layer of your choosing.Build to layout (expanded):
To ensure all walls are at least one tile in size and to allow better door placement, the map size is epanded to x2 + 1 tiles. All corridors stay one tile wide.Set object mapping:
Set (sprite) objects to use with the "build to layer" action. There's only rock, tunnel, room, (thin) wall and door tiles.That should be all, see the example .cap and experiment!