Skill Tree Activated

The quest to become an indie game developer

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

Almost Done With Grid Overlays

#PanicRoom Day 069

#100DaysOfGameDev R2D34
#100DaysOfCode R2D35

I actually spent the first twenty minutes of my morning having to troubleshoot and debug my GridOverlay script. I thought I had everything for the FloorGrid system put back together and QA’d, but it wasn’t working right. I was getting the first two column grid lines, but no label was appearing. At least that gave me a place to start.

today’s changelog
renaming the floor grid label tiles to make them easier to load into arrays

I went in and starting laying down Debug.Log’s to try and isolate the fault. After several tries I had it narrowed down to where the instantiation of the first label’s tens digit was occurring. I sat there scratching my head trying to figure out why this was possibly happening when I clearly remembered it working just fine yesterday. Then it hit me. I had renamed the arrays holding the prefab assets the LabelFloorGrid method was trying to instantiate. Of course it wasn’t going to work! Chalk this one up to DHS error (Developer Head Space); I felt like an idiot for having forgotten I renamed those arrays AFTER I did the QA check in order to prepare for working on the LabelHouseGrid method this morning. Oh well, at least it was a training opportunity for my debugging skills. #silverlining

slicing & naming new house grid label sprites

With that resolved I reloaded the arrays (and made sure LabelFloorGrid was working again!) and moved on to start work on LabelHouseGrid. Since I knew most of the code would be roughly the same, I copy/pasted LabelFloorGrid and figured I would go in and make the necessary changes line by line. As I went, I made notes as to which lines I changed so I could identify the altered ones easier (and quicker) when I needed to pass through again.

turning the house grid label sprites into prefabs

I finished my first pass at this block of code and, sure enough, something is not quite right. I expected that and the results I did get at least show it shouldn’t be too difficult to parse and figure out. I will pick up from here tomorrow and see if I can’t get the last overlay solved and put together so I can move forward with more game content. I’m excited for that and can’t wait to get to it, but I need to finish what’s on my plate first.

LabelHouseGrid almost working…

Leave a Reply

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