Basic Enemy

I have implemented the basics of the enemy into the game. As of now, it can move towards the player if it sees them and moves when it hears a ball object being thrown.

The enemy as a FOV of 110 and cannot currently detect the player at all when they are behind it. This will be changed so that if the player is very close behind the enemy they are still detected. The hearing detects when a ball object hits the ground. Depending on how hard the ball collides with the ground the enemy will hear it from further away. Further steps will have to be made to make the enemy feel scary to the player.

Leave a comment