Unity’s Tower Defense

For the Midterm Project in Circuit Stream’s Unity Developer Bootcamp, we were instructed to add a feature to a pre-existing game. I was given the Hero as a responsibility.

Challenges:

  • Diving through code that was already written.

  • Refactoring old code to fit with newly written code.

  • Applying code that was specifically created for towers to a mechanic like the Hero, which isn’t in the project at all.

Solutions:

  • Tested each part of the code using the debugger in Visual Studio to figure out exactly what code was attached to the Game Objects.

  • Followed SOLID principles in order to refactor the old code while maintaining functionality and style.

  • Created a new Hero class, and understood what previously written functions were needed by the Hero.