Random Room Generation by mactinite
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.
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.
| Web | http://mactinitegames.com/ext/Ludum_WarmUp/WebBuild.html |
| Original URL | https://ludumdare.com/compo/ludum-dare-30-warmup/?action=preview&uid=26320 |
It works on 2000 rooms too (but it's a bit of slow).
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.
@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.