Tuesday, July 13, 2010

Unable To Comply, Building In Progress

I started work on generating buildings. I got a function that generates simple, rectangular buildings with a doorway. I'm currently working out a concept for expanding it into more complex buildings with multiple rooms. The idea is you start with a single, large room that acts as a hub and add more rooms around it.

It gets more complicated as you try to make the extra rooms play nice with each other so you don't end up with some weird overlap. I may need to make an extra function that goes through and cleans up any mess that gets left over. Or I could make it where generation fails in case of an overlap. This will take a bit of experimenting to get it working the way I want it.

Photobucket

No comments:

Post a Comment