Prev: 80BD Up: Map Next: 80DB
80BE: Horizontal guardians
The horizontal guardian definitions are copied here by the routine at 8684, and then used by the routines at 8D0F and 8DAA. There are four slots, each one seven bytes long, used to hold the state of the horizontal guardians in the current cavern.
For each horizontal guardian, the seven bytes are used as follows:
Byte Contents
0 Bit 7: animation speed (0=normal, 1=slow)
Bits 0-6: attribute (BRIGHT, PAPER and INK)
1,2 Address of the guardian's location in the attribute buffer at 5C00
3 MSB of the address of the guardian's location in the screen buffer at 6000
4 Animation frame
5 LSB of the address of the leftmost point of the guardian's path in the attribute buffer
6 LSB of the address of the rightmost point of the guardian's path in the attribute buffer
80BE DEFS $07 Horizontal guardian 1
80C5 DEFS $07 Horizontal guardian 2
80CC DEFS $07 Horizontal guardian 3
80D3 DEFS $07 Horizontal guardian 4
80DA DEFB $00 Terminator (set to 0xFF)
Prev: 80BD Up: Map Next: 80DB