|
|
Darren New <dne### [at] sanrrcom> wrote:
> Kirk Andrews wrote:
> > I think this is a significant improvement over the previous images.
>
> BTW, what kind of technique did you use to ensure you didn't have (for
> example) balconies without doors leading to them, or something like that?
> (Other than the one that looks like it needs a trap door... :-)
>
> I.e., what does the top-level loop look like, in general terms?
>
> --
> Darren New, San Diego CA, USA (PST)
> "Ouch ouch ouch!"
> "What's wrong? Noodles too hot?"
> "No, I have Chopstick Tunnel Syndrome."
Well, it basically works like this:
1. Determine the number of stories of each block and store in an array
2. Determine the type of roof for each block depending on info from the first
array, and store these in an array.
3. Run the loop. If there's an exit at the current level and direction, make a
door; if not, make a window. If you're at the top, make the appropriate roof.
Unfortunately, I do end up with lots and lots of nested #if statements.
Post a reply to this message
|
|