WEEK10


Introduction

Goals

Place Enemies to the level.

- to bake navigation for the scene

- place enemies in the scene and set effective variables

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

  • Primary - Serena
  • Secondary -  

Technologies, Tools, and Resources used

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

[How Nav Mesh Links Work | Unity AI Pathfinding (Part 5) | Table Flip Games]-

Key Tasks Undertaken

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

  1.  Redistribute the codes in Enemy AI to make sure every old function work appropriately
  2.  have a concept about how to make the enemy spawn item and write down on the paper
  3. create some prefabs to set as spawners
  4. to make spawners are able to destroy itself,create a new script called Timer
  5.  attach Timer to all the spawners prefabs
  6. Create a new script called RandomSpawner and attach to the enemy
  7.  attach the new prefabs to the RandomSpawner script
  8.  in enemy to add some codes in a fixed update to make enemy be able to spawn these spawners when destroyed
  9.  Due to Timer script is holding destroy functions, need to rewrite the script to allow another script to access
  10.  to distinguish the game object types difference, we need to create a new script called "GameObject Types"
  11.  GameObjectTypes will allow other scripts to set types states to attached game objects
  12.  In RandomSpawner, adding codes and bools to restrict activate triggers
  13.  Same in Timer, execute different behaviors depends on different game object types when triggers activated
  14. retesting all the scripts in the games over and over again make sure no errors occur.

What I Found Out

Include any particular lessons learned, especially if this Spike was designed to cover knowledge gaps. Use Graphs, ScreenShots, Outcome Lists, or other Notes.

  1.  to set one function only run once, need a local variable to control it

Solution Justification

  1. repeatedly testing games and use debug.log to check where the problem is and rewrite logic
  2. if you need to use the function codes from other scripts, need to attach the scripts

Open Issues/Risks

List the issues and risks that you have been unable to resolve at the end of the spike. You may have uncovered a whole range of new risks as well.

  • if there are some new updates from other people, every time when I open the newest game file, some of my codes are missing or compile errors occur

Recommendations

  • always make a copy of my script saved in my computer

Leave a comment

Log in with itch.io to leave a comment.