Description

ZOMBIEWALKFRONT.png

The zombies are your basic enemies and also your most valuable resource. Zombies can hurt you, and if you get stuck between a few you will most likely die. But the zombies are also your main means to kill other enemies, such as bears or hillbillies.
Zombies have different types of behavior that can be specified when you place them in the level. The three types of zombie behavior are stationary, roaming, and persistent. Stationary zombies will remain in the same place until they catch sight of the player, at which point they will follow the player until they lose sight of him again. When they lose sight of the player, they go back to remaining in the same place until they see the player again. Roaming zombies will roam around a radius from their start point (specified in the parameters) in essentially random motion, until they catch sight of the player, at which point they will follow the player until they lose sight of him again. Once they've lost sight of the player, they will move in the same random motion asbefore. Persistent zombies start off the same as stationary zombies, not moving until they catch sight of the player, and then following the player. Once they lose sight of the player, however, they will follow the trajectory they last saw the player go.
Zombies will attack all living entities, but they prioritize based on the perceived danger level. They will attack a bear if it's in their sight radius even if the player is in the sight radius, and a hillbilly even if a bear or the player are in range.

Parameter
Type
Description



Position
Vector2
The position of the entity
Radius
float
The radius where the zombie will see enemies
Behavior
string
The type of behavior a zombie will follow
Tag
string
Additional entity information