Back to Browse Entries

Random Room Generation

by mactinite - Warmup Entry

Just a quick stab at random room generation. Instantiates the rooms, randomly picks connections to previous rooms, and ensures that no rooms take over the same grid position.

I've got it working with upwards of 1000 rooms on my machine.

Update 1 : Added different sized rooms. Changed the algorithm to check if the new room overlaps with an old one. Still working with upwards of 1000 rooms. I'm really having fun with this!

Update 2 : Wall rendering fixed. Okay I think I'm done with this until next week.

Downloads and Links


Comments

Aug 12, 2014 @ 2:47pm

cool! i am curius to see your actual ld entrie , good luck mate.

Knowledge says ...
Aug 12, 2014 @ 4:10pm

Really great.
It works on 2000 rooms too (but it's a bit of slow).

Aug 12, 2014 @ 7:08pm

Very cool, I loaded 3000 :D

Do you mind if I ask what you used to make the rooms? Are they quads? I really like how the doors match up with one another.

shatley123 says ...
Aug 12, 2014 @ 7:48pm

Managed 5000. Then I decided to do 10000 and my browser crashed :D

mactinite says ...
Aug 13, 2014 @ 3:02am

Hey guys, thanks for the interest.

@Hobo I just used prefab quads, since they're all the same size I matched them up pretty rigidly. I'm still messing with this, right now I've added different sized rooms, but the doors don't match up :(. So I'm gonna have to change my rendering to a tilebased method.

You must sign in to comment.


[cache: storing page]