Procedural generation - Corridors & Rooms

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Bindie
Party member
Posts: 151
Joined: Fri Jan 23, 2015 1:29 pm

Procedural generation - Corridors & Rooms

Post 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.
Dalorbi
Prole
Posts: 1
Joined: Mon Apr 06, 2015 12:27 am

Re: Procedural generation - Corridors & Rooms

Post 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
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests