Defining Room Blocks B and C
#PanicRoom Day 086
#100DaysOfGameDev R2D51
#100DaysOfCode R2D51
Defining Room Blocks B & C was going to be little more involved due to the increased number of possible layout configurations. I started by noting the different combinations and then went back and, using my design drawings, determined the positioning of each possibility.
This is the type of work where there isn’t a lot to show, but it’s critical to getting things working properly going forward. When I had everything calculated and punched in, I wrote a few lines of Debug code so I could test my room block assignments against repeated randomly-generated houses.
This was a critical move because I actually had room blocks B and C reversed in one of my eight possible iterations. This is why I always try to remember to test things as I go to be sure that the code is actually doing what I want it to. Always Test. Test. Test. Test.