Streamlining Code
D039 #PanicRoom
R2D004 #100DaysOfGameDev
R2D009 #100DaysOfCode
While I figured out how to Destroy or Move the walls at the end of my Primary Hallway, I wasn’t too pleased with the overall bulk of the code I used to achieve it. Looking at it a little more closely, I determined I would be better off designating a new Function that could be used repeatedly to accomplish tasks. This led me to set up my MoveWall function which drastically reduced the number of lines of code I originally had in my script to accomplish the same results.