WEEK2
Introduction
Goals
I have been assigned work on the enemy AI system.
The AI should be able to:
walking | done |
avoidance | done |
chasing | done |
attacking | done |
- Shooting: attacking the player, when player access into a specific enemy's attack range, shoot the bullets 1 each frame also stop shooting when exiting the attack range
Personnel
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 to make a Tower Defense Game (E05 SHOOTING) - Unity Tutorial]-
[How To Make An Enemy To Aim And Fire Bullet Towards Player Position? Simple 2D Tutorial.]-
Key Tasks Undertaken
The following are the key tasks that were taken to help a developer/reader understand how the tasks were completed.
- open the game project file, and created a file for my work, drag everything I edited in that file and create a new scene
- working on the old scripts and create d 2 new scripts to make the scripts work better and properly
- Comparing with the old scripts and move the main function codes to the new script.
- think about the function, and what we need to turn up the trigger that tells the enemy to target
- the first new script named Enemy AI, also applying a status pattern to allow the enemy easier to switch their behaviors
- instead of using look radius, using collisions to adjust the areas
- another new script will be EnemyViewVolume which will tell the enemy when enter this filed what they are going to behave
- attach a new collision to the enemy prefab
- attach the new script of EnemyViewVolume script to the collision and the EnemyAI script the enemy prefab
- read through the contents of other people's scripts who did weapons.
- applying other peoples' work find out a suitable way to make enemy shooting behavior
- always check with references
- fix script errors to updated unity issues and classify the codes
- commit the changes and merge to the server and push it to the bitbucket
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.
- how to appropriately choose trigger is important
Solution Justification
- have assumptions to see what dynamic is required and search tutorials to get relevant knowledge
- check with unity references to confirm the rightness
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.
- shooting towards the target's position is different from stalking the target
Recommendations
- try to access exist work form others to make enemy attacking behavior next week
SGD 300 FPS RPG
Status | Released |
Author | Serena.DD.Pei |
Genre | Shooter, Role Playing |
Tags | Unity |
Leave a comment
Log in with itch.io to leave a comment.