Prev: 51004 Up: Map Next: 51077
51052: Handle Flipped Near Arch
Used by the routine at HandleNearArch.
Sets up the near side of an arch whose sprite is flipped. The middle of the doorway is thirteen units back along the X axis.
Input
IX Address of the arch object
Set the doorway middle and the distances that count as near.
HandleFlippedNearArch 51052 LD HL,65263 Set HL to the adjustments of 239 in X and 254 in Y.
51055 CALL StorePixelAdjustments Set the adjustments.
51058 LD A,(IX+1) Fetch the X coordinate of the arch.
51061 SUB 13 Take 13 off it.
51063 LD (IX+9),A Keep it as the X coordinate of the middle of the doorway.
51066 LD A,(IX+2) Fetch the Y coordinate of the arch.
51069 LD (IX+10),A Keep it as the Y coordinate of the middle of the doorway.
51072 LD HL,3846 Set H to the distance in Y that counts as near and L to the distance in X.
51075 JR HandleNearArch_Near Jump to HandleNearArch_Near.
Prev: 51004 Up: Map Next: 51077