Weapon and Enemy Attributes


Introduction

This sprint my focus was re-implementing a weapon data script to instantiate attributes to an enemy rather than a weapon. This meant familiarizing myself with the classes to a point where I could understand it and then creating a mirror class. Then testing the class in a scene and packaging it up for core.

Goals

  • Understand the classes of WeaponData and JsonReader.
  • Research and understand Singletons
  • Create an EnemyData Class.
  • Package the classes for Core.

Personnel

Primary – Christian Hodges

Secondary – Ryley Delaney

Technologies, Tools, and Resources used

What we found out

  • When recreating a class file, using the “peek definition” tool allows you to ensure variables have appropriate references.
  • The reading of the JSON file called on a null reference when the group of strings weren’t grouped under the name “items”. The reason is unknown but is resolved for the time being.
  • Singletons allow for a single instance of one object to be stored in engine memory and called from any class without a reference.

Recommendations

Take the time to understand the script you’re re-implementing. It will make troubleshooting far easier.

If the task only requires you to recreate the script, it may not be efficient for the project to spend large periods of time understanding more complex components. Contrary to the previous statement.

Leave a comment

Log in with itch.io to leave a comment.