Skill Tree Activated

The quest to become an indie game developer

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

lastRoom

#PanicRoom Day 099

#100DaysOfGameDev R2D64
#100DaysOfCode R2D64

In light of my recent clash with both room Aa and room Ab wanting to split and not knowing how to handle a room Ac properly (or even set up a room Ad), I decided to implement a new lastRoom variable to always track the last room built so it would be clear what the next one would always be.

using a last room built tracker to smooth out the room-splitting process

This worked well and I tweaked my room analyzers out a little to handle the new flow. Now when a room gets split and the hashtable is modified the code can move on to the next Room Analyzer knowing what it will need to do if it encounters the next split situation.

I just have to write the new Room Ac Analyzer (to know how to create a possible Room Ad) and all should be well.

Leave a Reply

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