Zombie: Difference between revisions
Content added Content deleted
Piranhaplant (talk | contribs) No edit summary |
Piranhaplant (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
* '''Following wall:''' Go counterclockwise around the perimeter of a wall. A zombie will enter this state if it touches a wall (i.e. a tile that is solid to monsters) while in the wandering state. |
* '''Following wall:''' Go counterclockwise around the perimeter of a wall. A zombie will enter this state if it touches a wall (i.e. a tile that is solid to monsters) while in the wandering state. |
||
* '''Targeting:''' Move towards the nearest targetable sprite. A zombie enters this state when it comes within a certain distance of a targetable sprite. The zombie will leave this state and go back to the wandering state if there is no longer a targetable sprite within another (slightly larger) distance. |
* '''Targeting:''' Move towards the nearest targetable sprite. A zombie enters this state when it comes within a certain distance of a targetable sprite. The zombie will leave this state and go back to the wandering state if there is no longer a targetable sprite within another (slightly larger) distance. |
||
{{BPMN_embed|BPMN:Zombie state diagram}} |
|||
[[Category:Respawning monster]] |
[[Category:Respawning monster]] |
Revision as of 22:35, 11 April 2024
Monster data | |
---|---|
![]() | |
HP | 1 |
Points | 100 |
Entity data | |
---|---|
Entity pointer | $81:87F8 (normal) $81:88CA (hard) |
The zombie is a respawning monster.
Behavior
Zombies can be in one of three states:
- Wandering: Walk in a straight line in a random one of the four orthogonal directions. Zombies start in this state.
- Following wall: Go counterclockwise around the perimeter of a wall. A zombie will enter this state if it touches a wall (i.e. a tile that is solid to monsters) while in the wandering state.
- Targeting: Move towards the nearest targetable sprite. A zombie enters this state when it comes within a certain distance of a targetable sprite. The zombie will leave this state and go back to the wandering state if there is no longer a targetable sprite within another (slightly larger) distance.