Defining Room Blocks
#PanicRoom Day 073
#100DaysOfGameDev R2D38
#100DaysOfCode R2D38
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…