A game can only get so far with one type of enemy. This tutorial will teach you how to create a homing enemy: one that tracks you down and follows you no matter where you move. Here we'll utilize some more trigonometry with Math.sin()
and Math.cos()
functions.