Skill Tree Activated

The quest to become an indie game developer

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

SplitRoom Method

#PanicRoom Day 090

#100DaysOfGameDev R2D55
#100DaysOfCode R2D55

testing Room Analyzer

I felt like the addition of the Room Analyzer to the BuildRooms() block of code was making it a bit cumbersome, so I wanted to come up with ways to streamline things a bit.

The most obvious way to do this was to work on the actual Room Analyzer code and reduce it to lowest common denominator. This meant creating some new variables and reworking the algorithms to really consolidate things. I went through several iterations of what I wanted the code to do before finally settling on a final report style.

refining Room Analyzer

The other thing I did to clean things up a little was create a new SplitRoom() method. This gets invoked any time a room needs a dividing, no matter how many times this needs to happen. This also has the added benefit of keeping the moving parts of this stage of the HouseBuilder script separated so I can tweak them out individually as needed.

Leave a Reply

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