How Teaching Game Dev Found Me
Well, I discovered that as I split up the room, if I added each rectangle to an array, I’d end up with the following:
Now, I knew that A had children B and C, and B had children D and E, etc. I needed to know, for example, that room D was a child of B, which was a child of A, and so on. Or not.