Random dungeon creator -> Dungeon Blocks; Possible?
So I found out about this dungeon builder today: https://watabou.github.io/dungeon.html
Which makes random dungeons. There are others I've seen, but this one lets you download the JSON for it.
It has an array of rectangles:
"rects": [
{
"x": 1,
"y": -1,
"w": 4,
"h": 3
},
{
"x": 2,
"y": 3,
"w": 3,
"h": 4
},
And an array of door locations, with some layout detail:
"doors": [
{
"x": 0,
"y": 0,
"dir": {
"x": 1,
"y": 0
},
"type": 3
},
My sample dungeon I was playing with also had an empty array of water tiles:
"water": []
}
Which makes me wonder if there might be a programatic way to build a dungeonblock layout based on that data.
"index": 1,
"tiles": [
{
"x": 1,
"y": 2,
"orientation": 2,
"element": "MT1-038"
},
{
"x": 0,
"orientation": 3,
"y": 2,
"element": "MT1-037"
},
Is this a crazy thought or is there something worth digging into here? I'm not really a developer, but all the AI ads I get pushed say I should just be able to stay at a holiday inn express and crank it out.