Werewolf
Monster data | |
---|---|
![]() | |
HP | 11 |
Points | 300 |
Entity data | |
---|---|
Entity pointer | $81:ABF5 |
The werewolf is a respawning monster. Werewolves will only spawn if the level has palette fade that has completed, though this condition can be bypassed by using $81:ABFB as the entity pointer instead.
Behavior
Werewolves can be in one of three states:
- Walking: Move towards the nearest targetable sprite at an average rate of 1.5 px/frame. Werewolves start in this state.
- If the werewolf is exactly 360 pixels away from the target, then despawn.
- If the werewolf's health has changed, jump in a random diagonal direction a distance of 20-51 pixels on the X axis and 15-46 pixels on the Y axis.
- If the werewolf is between 70 and 344 pixels of the target, then there is a 15/255 (5.88%) chance to jump at the target.
- If the target is a victim, jump 28 pixels past the target on the X axis.
- Otherwise, jump 124 pixels past the target on the X axis.
- If the werewolf is less than 4 pixels from the target on the Y axis and less than 29 pixels on the X axis, then attack.