Defining Room Blocks B and C
#PanicRoom Day 086
#100DaysOfGameDev R2D51
#100DaysOfCode R2D51
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-28_notepad_changelog.png?resize=715%2C336&ssl=1)
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-28_Map-Page-07.png?resize=215%2C278&ssl=1)
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-28_Map-Page-08.png?resize=218%2C282&ssl=1)
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.
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-28_Code_defining_room_blocks.png?resize=404%2C544&ssl=1)
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.
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-28_Unity_testing_room_block_assignments.png?resize=800%2C563&ssl=1)