Week 5-7 | Dev Log | Jamie Pasnin


Week 5-7 | Development Log | FPS RPG

Finalizing Health System, Combining Work & Covid

Introduction

During weeks 5 to 7, the project work has slowed down due to the transition to online learning and communication, and as we as the team are combining each of our components work to create a base foundation for a FPS game. Week 5 was the only week within the specified time frame where I worked on finalizing the health and armor system: 

  • Added armor recharge with delay and rate variables.

Goals

The following were the primary goals for week 5.

  • Create armor recharge capability into the health and armor script.

Personnel

The following is the primary author and any secondary authors who assisted in completing the set tasks given. 

  • Primary - Jamie Pasnin
  • Secondary - N/A

Technologies, Tools, and Resources Used

The following are the technologies, tools and resources used to assist in completing the set goals.

  • No external technologies, tools or resources were used this week.

Key Tasks Undertaken

The following are the key tasks that were taken to help a developer/reader understand how the tasks were completed.

  • To begin creating the armor recharge mechanic I added 3 variables (armorcheck, armorRechargeCheck and currentArmorRechargeDelay) to the previous two variables (armorRechargeDelay and armorRechargeRate) shown below:
    • HealthArmorController Script | Variables
  • Then initialized the variables in start function:
    • HealthArmorController Script | Variables Initialization
  • I created the armor recharge mechanic within the update function because the armor recharge requires constant frame by frame checks to see if the character has taken damage or has not taken damage for a period of time. Code shown below:
    • HealthArmorController Script | Armor Recharge Function
  • Then did some tests to make sure it works and pushed my work onto SourceTree in Master branch.

What I Found Out

The following is any particular lessons learned in week 5.

    • Learned how to use time countdowns within Unity and from troubleshooting on my own learned how to create rechargeable armor.

    Open Issues/Risks

    The following is a list of any issues or risks that were unable to be resolved that caused tasks to not be completed. 

    • No issues or risks were presented that caused tasks to not be completed. 

    Solution Justification

    The following describes why I chose the solution that I did to complete the goals set in week 5. 

    • Because I created and troubleshooted this mechanic on my own, the solution I came to was not planned but rather accomplished through trial and error.

    Leave a comment

    Log in with itch.io to leave a comment.