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
Astray - dungeon generation library
Astray - dungeon generation library
Last edited by SiENcE on Thu Jan 09, 2014 8:23 am, edited 2 times in total.
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Astray - dungeon generation library
I saw you create this on github: This is super cool.
So much love for zlib/libpng <3
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
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
Re: Astray - dungeon generation library
Yeah sure, why not . I appreciate any help to get this lib better and better.
-
- Party member
- Posts: 355
- Joined: Wed Jul 03, 2013 4:06 am
Re: Astray - dungeon generation library
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
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 is available on itch.io or Steam, and whose engine I've open-sourced!
And its sequel, simply called Possession , which is available on itch.io or Steam, and whose engine I've open-sourced!
Who is online
Users browsing this forum: No registered users and 213 guests