Page 1 of 1

Astray - dungeon generation library

Posted: Wed Jan 08, 2014 9:42 pm
by SiENcE
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
Image

step 2: sparsing
Image

step 3: dead end removal
Image

step 4: create rooms
Image

step 5: create doors
Image

Re: Astray - dungeon generation library

Posted: Thu Jan 09, 2014 12:06 am
by josefnpat
I saw you create this on github: This is super cool.

So much love for zlib/libpng <3

Re: Astray - dungeon generation library

Posted: Thu Jan 09, 2014 8:14 am
by SiENcE
Yeah sure, why not :). I appreciate any help to get this lib better and better.

Re: Astray - dungeon generation library

Posted: Thu Jan 09, 2014 2:38 pm
by pauljessup
zlib/png license? Cool. I might include this with the tile based map editor/library I'm working on for generating dungeons, if that's cool w/ you

Re: Astray - dungeon generation library

Posted: Thu Jan 09, 2014 2:54 pm
by Rickton
Pretty cool. I might have to use this.