Astray - dungeon generation library

Showcase your games and demos, and discuss ongoing projects.

Astray - dungeon generation library

Postby SiENcE on 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
SiENcE
Party member
 
Posts: 533
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany

Re: Astray - dungeon generation library

Postby josefnpat on 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
josefnpat
Inner party member
 
Posts: 835
Joined: Wed Oct 05, 2011 1:36 am

Re: Astray - dungeon generation library

Postby SiENcE on Thu Jan 09, 2014 8:14 am

Yeah sure, why not :). I appreciate any help to get this lib better and better.
User avatar
SiENcE
Party member
 
Posts: 533
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany

Re: Astray - dungeon generation library

Postby pauljessup on 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
pauljessup
Party member
 
Posts: 137
Joined: Wed Jul 03, 2013 4:06 am

Re: Astray - dungeon generation library

Postby Rickton on Thu Jan 09, 2014 2:54 pm

Pretty cool. I might have to use this.
Possession, my roguelike made in LÖVE for the 2013 7-Day Roguelike Challenge
Possession 2, currently in development.
Rickton
Citizen
 
Posts: 56
Joined: Tue Mar 19, 2013 4:59 pm


Return to Projects and Demos

Who is online

Users browsing this forum: ArchAngel075, NightKawata and 4 guests