Prev: A96C Up: Map Next: A98B
A974: Draw Shifted Entity
Used by the routine at MaterialiseEntity.
Draws an entity at an offset in the X direction, and then puts its position back.
Input
IX Entity
HL X position
DE Offset
DrawShiftedEntity A974 PUSH HL Save the X position.
A975 ADD HL,DE Add the offset...
A976 LD A,H ...and keep the X cell within the map.
A977 AND $3F
A979 LD H,A
A97A LD (IX+$01),L Store the X position of the entity...
A97D LD (IX+$02),H Store the X cell.
A980 CALL AddEntity Draw the entity using AddEntity.
A983 POP HL Restore the X position...
A984 LD (IX+$01),L ...and store it again.
A987 LD (IX+$02),H Store the X cell again.
A98A RET Return.
Prev: A96C Up: Map Next: A98B