mapgen moving to delanay -> minimum spanning tree for rooms connection

This commit is contained in:
2019-11-11 01:47:16 +03:00
parent b734e538f4
commit e30aa33715
16 changed files with 380 additions and 73 deletions

39
assets/prefabs/test.json Normal file
View File

@ -0,0 +1,39 @@
{
"default_tile_legend": {
"?": "any",
"#": "wall",
".": "floor",
"+": "connector"
},
"default_mobs_legend": {},
"default_item_legend": {},
"prefabs": [
{"name": "test_room_1",
"tile_legend": {
"D": "decorated_wall",
"w": "water",
"W": "deep_water"
},
"mobs_legend": {},
"item_legend": {},
"size": {"x":16, "y":13},
"body": [
"???????#+#??????",
"???DDDD#.#DDDD??",
"###D.........DD?",
"+....wwwwwww..D?",
"###..wWWWWWw..D?",
"??#..wW...Ww..##",
"??D..wW.D.Ww...+",
"??D..wW...Ww..##",
"??D..wWWWWWw..#?",
"??D..wwwwwww..D?",
"??DD.........DD?",
"???DDDD#.#DDDD??",
"???????#+#??????"
]
}
]
}