top of page

Documentation

Objective:

The objective is to add on to the projectile enemy a calculation that'll predict where the player will be at next, then shoot in that direction

​

Process:

Using a video as a reference for the calculation of the projectile prediction. In the video, they discussed using Law Of Cosine to get the angle and the distance needed to get the calculations to work.

​

So after implementing the algorithm. It seems to work a little bit. The projectiles in the beginning shoot way out of range and nowhere near the player, but eventually the shots do narrow down a bit towards where the player will be.

​

Found the changing the speed of the enemy projectile helps make the firing less spread out and more direct. However, it is a bit too fast, so it may be a thing we'll have to adjust the speed to where we think it looks right and feels good.

© 2022 by Justin Hur

​

bottom of page