Page 1 of 1

Procedural generation - Corridors & Rooms

Posted: Mon Mar 30, 2015 8:49 pm
by Bindie
Hey! Need some help doing procedural generation, but not like a cave.

I'm thinking of a maze with at least one wall left. Example


X.XXXXX
X.XXXXX
X........
XXX.XXX
.......XX
XXX.XXX
X......XX
X......XX
X......XX
XXXXXXX

With straight corridors and such.

Is there a libary for this? I could of course make it myself, would be more fun. Anybody who like to explain?

Planning for next game.

Thanks.

Re: Procedural generation - Corridors & Rooms

Posted: Mon Apr 06, 2015 12:33 am
by Dalorbi
This library called Astray (http://love2d.org/forums/viewtopic.php?t=76929) seems to be what you're looking for, the code's open source as per usual. It's under the zlib/png license so i suppose you're free to use the source as you wish, including playing around with and learning from it, have fun