Prev: AF01 Up: Map Next: AF25
AF04: Set Pair Attributes
Used by the routine at CheckItemDelivery.
Sets the attributes of the two sprites at PieceVariables_FirstSprite and PieceVariables_SecondSprite (which are 05 and 03 cells wide) to bright white, by filling the area under each one in the same way as SetObjectAttributes.
SetPairAttributes AF04 LD A,$47 A=47.
AF06 LD ($AF03),A The pieces are bright white.
AF09 LD HL,($C27B) Fetch the word at PieceVariables_FirstSprite into HL.
AF0C LD B,$23 B=23.
AF0E LD A,$05 A=05.
AF10 CALL SetPairAttributes_Second Call SetPairAttributes_Second.
AF13 LD HL,($C27D) Fetch the word at PieceVariables_SecondSprite into HL.
AF16 LD B,$2F B=2F.
AF18 LD A,$03 A=03.
SetPairAttributes_Second AF1A LD ($AF01),A Update the attribute area.
AF1D LD A,B A=B.
AF1E CALL LimitHeight Call LimitHeight.
AF21 LD D,B D=B.
AF22 JP SetObjectAttributes_Height Jump to SetObjectAttributes_Height.
Prev: AF01 Up: Map Next: AF25