Skill Tree Activated

The quest to become an indie game developer

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

Defining Room Blocks B and C

#PanicRoom Day 086

#100DaysOfGameDev R2D51
#100DaysOfCode R2D51

primary hallway is vertical room block possibilities
primary hallway is horizontal room block possibilities

Defining Room Blocks B & C was going to be little more involved due to the increased number of possible layout configurations. I started by noting the different combinations and then went back and, using my design drawings, determined the positioning of each possibility.

This is the type of work where there isn’t a lot to show, but it’s critical to getting things working properly going forward. When I had everything calculated and punched in, I wrote a few lines of Debug code so I could test my room block assignments against repeated randomly-generated houses.

defining Room Blocks B and C

This was a critical move because I actually had room blocks B and C reversed in one of my eight possible iterations. This is why I always try to remember to test things as I go to be sure that the code is actually doing what I want it to. Always Test. Test. Test. Test.

testing variable assignments for room blocks

Leave a Reply

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