Random Room Generation by mactinite

[raw]
made by mactinite for LD30 Warm-Up (-)
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.

Feedback

randomvideo.com
12. Aug 2014 路 14:42 UTC
cool! i am curius to see your actual ld entrie , good luck mate.
Knowledge
12. Aug 2014 路 16:05 UTC
Really great.
It works on 2000 rooms too (but it's a bit of slow).
HoboMechanistic
12. Aug 2014 路 19:03 UTC
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
12. Aug 2014 路 19:43 UTC
Managed 5000. Then I decided to do 10000 and my browser crashed :D
馃帳 mactinite
13. Aug 2014 路 02:57 UTC
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.