Bear
Bear | |
---|---|
ZZT-OOP name | bear |
Internal ID | 34 (0x22) |
Character | #char 153 Ö (0x99) |
Default color | dark brown on black (0x06) |
Category | creature |
Stats | |
Default cycle | 3 |
P1 | sensitivity (default: P1=8) |
Other traits | |
Score when shot | 1 |
Effect on movement | pushable, squishable |
Destructible? | yes |
Uses ZZT-OOP color names? | no |
The bear is a type of built-in enemy that seeks after the player that is sufficiently aligned on a cardinal axis, based on its sensitivity stat. Unlike other enemies, bears' movement is entirely non-random regardless of their stats. If the bear walks into the player, then the player takes 10 damage and the bear is destroyed. If the bear walks into a breakable wall, then both the wall and the bear are destroyed.
If the bear is not vertically aligned with the player, the bear checks if the difference in vertical position between the player and the bear is less than or equal to 9 - Sensitivity
where Sensitivity = P1 + 1
. If so, then the bear takes a step horizontally towards the player. Otherwise, the bear checks if the difference in horizontal position is within the same range, and if so then it takes a vertical step towards the player.
The sensitivity stat works the opposite way on would expect given its name. At the lowest sensitivity setting, the bear moves towards the player if it is within 9 tiles of being aligned on an axis. At the highest sensitivity, the bear only moves if the player is directly aligned with it.
All non-standard values for P1 (from 9 to 255) appear to produce a bear that does not respond to the player's position at all (perhaps it is hibernating).
Elements | |
---|---|
Special | |
Items | |
Terrain | |
Creatures | |
Text |