A code to make enemys that follow the player and attacks it. You are allowed to use this in your code if you want to.