Astray - dungeon generation library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
SiENcE
Party member
Posts: 772
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Astray - dungeon generation library

Post by SiENcE » 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
Image

step 2: sparsing
Image

step 3: dead end removal
Image

step 4: create rooms
Image

step 5: create doors
Image
Last edited by SiENcE on Thu Jan 09, 2014 8:23 am, edited 2 times in total.

User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Astray - dungeon generation library

Post by josefnpat » Thu Jan 09, 2014 12:06 am

I saw you create this on github: This is super cool.

So much love for zlib/libpng <3
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push

User avatar
SiENcE
Party member
Posts: 772
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Astray - dungeon generation library

Post by SiENcE » Thu Jan 09, 2014 8:14 am

Yeah sure, why not :). I appreciate any help to get this lib better and better.

pauljessup
Party member
Posts: 141
Joined: Wed Jul 03, 2013 4:06 am

Re: Astray - dungeon generation library

Post by pauljessup » Thu Jan 09, 2014 2:38 pm

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

Rickton
Party member
Posts: 117
Joined: Tue Mar 19, 2013 4:59 pm
Contact:

Re: Astray - dungeon generation library

Post by Rickton » Thu Jan 09, 2014 2:54 pm

Pretty cool. I might have to use this.
Possession - Escape from the Nether Regions, my roguelike made in LÖVE for the 2013 7-Day Roguelike Challenge
And its sequel, simply called Possession , which now has a Steam Page!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests