Sunday, February 11, 2018

Utkarsh Dwivedi | Week 5: Cleaning code is necessary


WEEKLY NARRATIVE


This week Joe and I worked on modifying the IPlayerAbility interface, which is implemented by all the powers/abilities that Rem has (the XRay ability and the Dash ability). We also worked on moving the dash ability code from the PlayerController to its own script, which implemented the IPlayerAbility interface. As it turned out, the dash code used elements that were very integral to the PlayerController script. Because of that, moving the dash code into its own script turned out to be rather tedious. We had to create helper methods in the PlayerController script to get some information held by it that the Dash script also needed to know.

In the end, however, we were able to clean the code and make the PlayerController script look less messier.


CONTENT WITH HOURS


  • Meetings (1 hr)
  • Programming everything (6.5 hrs)



WORKFLOW EXAMPLES



POSITIVE OUTCOMES


  • Our code base looks much cleaner than it did when we started the term.


NEGATIVE OUTCOMES


  • The dash script was a pain.

NEXT TASKS

Work on new programming tasks.


TOTAL HOURS LOGGED THIS WEEK: 7.5 hours

No comments:

Post a Comment