Prev: C73C Up: Map Next: C785
C76C: 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 C76C LD HL,$FEEF Set HL to the adjustments of EF in X and FE in Y.
C76F CALL StorePixelAdjustments Set the adjustments.
C772 LD A,(IX+$01) Fetch the X coordinate of the arch.
C775 SUB $0D Take 0D off it.
C777 LD (IX+$09),A Keep it as the X coordinate of the middle of the doorway.
C77A LD A,(IX+$02) Fetch the Y coordinate of the arch.
C77D LD (IX+$0A),A Keep it as the Y coordinate of the middle of the doorway.
C780 LD HL,$0F06 Set H to the distance in Y that counts as near and L to the distance in X.
C783 JR HandleNearArch_Near Jump to HandleNearArch_Near.
Prev: C73C Up: Map Next: C785