Dividing Room Block A
#PanicRoom Day 087
#100DaysOfGameDev R2D52
#100DaysOfCode R2D52
Room blocks have been defined and it is now time to start tackling how to turn them into actual individual rooms. In order to divide Room Block A I first needed to add a definition for a Single wall, as opposed to the dual-walled hallways, to the BuildWalls() method.
Selecting a random spot in the room, leaving a minimum clearance at each end, was straightforward enough at this point and everything came together nicely to put the new dividing wall in place.
Honestly, the hardest part of today’s efforts was setting up new variables and code to make sure the wall would be built properly. This is where all my work rewriting large portions of HouseBuilder are paying off because I can now implement new things much more smoothly.