The First Zombie

zombie_picture

Finally I got some progress worth sharing!
(The blue line is the RayCheck and the red line is a confirmation that the zombie has found the player e.g there is no wall in between)

The vision of the zombie is almost complete. It can now see the player and act accordingly e.g change state between WANDER, ACTIVE and CHASE.
The CHASE state makes the zombie chase the player while it sees him.
If the zombie loses sight of the player it will enter an ACTIVE state and lose some speed compared to the CHASE state. In this state the zombie will walk in the last known direction of the player.
Finally after some time the zombie will enter the WANDER state and lose even more speed while it walks around aimlessly searching for the player.

Leave a Reply