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

Secondary Hallways & Grid Always On

#PanicRoom Day 080

#100DaysOfGameDev R2D45
#100DaysOfCode R2D45

secondary horizontal hallway not quite right yet

I finished working on the Primary Hallways by cleaning up the code for the horizontal walls. When I had it reduced to just what I needed to work with I started making the changes I would need to get it functioning properly. This involved adjusting to make sure the walls were being built in the correct spot and at the correct width apart. I also had to change the naming conventions of the wall pieces of both Primary and Secondary hallways to show the grid assignments as opposed to the grid locations.

secondary vertical hallway too narrow

With that done and Secondary Hallways now being created properly for all four possible quadrants, I took some time to go back through the code and lay down comments and notes just to make everything easier to understand and locate next time I have to come around.

proper build of Secondary Hallway
fixed Secondary Hallway spacing

As a bonus today I had enough time to implement another Developer Tool in my arsenal of tricks to make life easier in the form of an Always On toggle for my House Grid. I figured since I had been leaning on it so heavily lately to ensure proper placement and alignment of game assets, why not set myself up with a checkbox in my GameManager script that would automatically create and display the House Grid whenever I run the game for testing. A couple variables here, a couple lines of code there and it was up and running. Very handy.

new Grid Always On dev tool

Leave a Reply

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