Prev: 44801 Up: Map Next: 44837
44804: Set Pair Attributes
Used by the routine at CheckItemDelivery.
Sets the attributes of the two sprites at PieceVariables_FirstSprite and PieceVariables_SecondSprite (which are 5 and 3 cells wide) to bright white, by filling the area under each one in the same way as SetObjectAttributes.
SetPairAttributes 44804 LD A,71 A=71.
44806 LD (44803),A The pieces are bright white.
44809 LD HL,(49787) Fetch the word at PieceVariables_FirstSprite into HL.
44812 LD B,35 B=35.
44814 LD A,5 A=5.
44816 CALL SetPairAttributes_Second Call SetPairAttributes_Second.
44819 LD HL,(49789) Fetch the word at PieceVariables_SecondSprite into HL.
44822 LD B,47 B=47.
44824 LD A,3 A=3.
SetPairAttributes_Second 44826 LD (44801),A Update the attribute area.
44829 LD A,B A=B.
44830 CALL LimitHeight Call LimitHeight.
44833 LD D,B D=B.
44834 JP SetObjectAttributes_Height Jump to SetObjectAttributes_Height.
Prev: 44801 Up: Map Next: 44837