Skill Tree Activated

The quest to become an indie game developer

#100DaysOfCode#100DaysOfGameDevC#Illogical BaconPanic RoomScript-writingUnityVisual Studio

Dividing Room Block A

#PanicRoom Day 087

#100DaysOfGameDev R2D52
#100DaysOfCode R2D52

changelog
room block A divided horizontally

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.

room block A divided vertically

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.

dividing room block A

Leave a Reply

Your email address will not be published. Required fields are marked *