Prev: 61FE Up: Map Next: 6212
6208: Offset Blip Down
Used by the routine at LocateRadarBlip.
Continues LocateRadarBlip when the target is not further up the map than the player. The vertical distance is scaled to radar pixels and added to the centre row of the radar. If the target is too far away then the blip is hidden.
Input
HL Vertical distance from the target to the player
IX Radar blip record
OffsetBlipDown 6208 CALL MultiplyHLByFour Call MultiplyHLByFour to multiply the distance by 04 which leaves the distance in radar pixels in H.
620B LD A,$0E Start from the centre row of the radar (0E).
620D SUB H Take the distance away from the centre row (flipped to a row below the centre at LocateRadarBlip_FlipRow).
620E JR C,HideRadarBlip If the target is more than 0E pixels away then jump to HideRadarBlip.
6210 JR LocateRadarBlip_FlipRow Jump to LocateRadarBlip_FlipRow to convert this into a row below the centre of the radar.
Prev: 61FE Up: Map Next: 6212