Defining Room Blocks
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/06/panic_button_press.gif?resize=165%2C122&ssl=1)
#PanicRoom Day 073
#100DaysOfGameDev R2D38
#100DaysOfCode R2D38
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-13_notepad_changelog.png?resize=800%2C359&ssl=1)
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/Map-Page-06-1.png?resize=331%2C428&ssl=1)
Before I could actually start coding for dividing walls in the room blocks, it was necessary to define where the room block are actually going to be. This is not a defined placement as the House is procedurally-generated each time it is created, so everything has to be defined as a relationship to other things.
Using my design notes, I translated how I wanted room blocks to be determined into code relationships using some of the key variables from my HouseBuilder script.
Noting the key variables I would have to use I then added, or in some cases reactivated, Debug.Logs in vital locations within the script to show me the important numbers I would need to know to ensure I was on the right track.
This is where things went a little sideways, but that is a story for tomorrow…
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/08/2020-08-13_Unity_setting-up-for-rooms.png?resize=743%2C647&ssl=1)