Astray - dungeon generation library
Posted: Wed Jan 08, 2014 9:42 pm
Astray is a lua based maze, room and dungeon generation library for dungeon crawlers and rougelike video games.
https://github.com/SiENcE/astray
I thought it would be nice to give something back to this LÖVELY Community!
Note: The library work in cells. Each cell has four sides. You can expand this cells to tiles for tilebased games using the CellToTiles function. This doubles the size of the dungeon. But there is one annoying thing. The tiled dungeon is doubled+1 in size. Also the rooms are doubled+1 in size and the expanded array starts from 0 (which is no good in lua). So, a bit of work is still todo .
Problems: If you choose extreme values (like a small dungeon with oversized rooms) doors are misplaced. This needs some additional verification.
Suggestions, comments, bugreports, enhancements and games are welcome!
cheers
step 1: inital maze generation
step 2: sparsing
step 3: dead end removal
step 4: create rooms
step 5: create doors
https://github.com/SiENcE/astray
I thought it would be nice to give something back to this LÖVELY Community!
Note: The library work in cells. Each cell has four sides. You can expand this cells to tiles for tilebased games using the CellToTiles function. This doubles the size of the dungeon. But there is one annoying thing. The tiled dungeon is doubled+1 in size. Also the rooms are doubled+1 in size and the expanded array starts from 0 (which is no good in lua). So, a bit of work is still todo .
Problems: If you choose extreme values (like a small dungeon with oversized rooms) doors are misplaced. This needs some additional verification.
Suggestions, comments, bugreports, enhancements and games are welcome!
cheers
step 1: inital maze generation
step 2: sparsing
step 3: dead end removal
step 4: create rooms
step 5: create doors