Prev: 32988 Up: Map Next: 33024
32989: Vertical guardians
The vertical guardian definitions are copied here by the routine at 34436, and then used by the routines at 36469 and 36593. There are four slots, each one seven bytes long, used to hold the state of the vertical guardians in the current cavern.
For each vertical guardian, the seven bytes are used as follows:
Byte Contents
0 Attribute
1 Animation frame
2 Pixel y-coordinate
3 x-coordinate
4 Pixel y-coordinate increment
5 Minimum pixel y-coordinate
6 Maximum pixel y-coordinate
In most of the caverns that do not have vertical guardians, this area is overwritten by unused bytes from the cavern definition. The exception is Eugene's Lair: the routine at 34436 copies the graphic data for the Eugene sprite into the last 32 bytes of this area, where it is then used by the routine at 36344.
32989 DEFS 7 Vertical guardian 1
32996 DEFS 7 Vertical guardian 2
33003 DEFS 7 Vertical guardian 3
33010 DEFS 7 Vertical guardian 4
33017 DEFB 0 Terminator (set to 255 in caverns that have four vertical guardians)
33018 DEFS 6 Spare
Prev: 32988 Up: Map Next: 33024