Prev: CC71 Up: Map Next: CCD2
CCC5: Update Direction Gauge
Used by the routine at RunFrame.
Sets the heading shown by the direction gauge, which is the heading of the player plus 08 and redraws the gauge with DrawDirectionGauge.
Input
IX The player entity
UpdateDirectionGauge CCC5 LD A,(IX+$11) Fetch the heading.
CCC8 ADD A,$08 Add 08.
CCCA AND %00111111 Use bits 0-5.
CCCC LD ($5CD8),A Write A at ScratchValue.
CCCF JP DrawDirectionGauge Jump to DrawDirectionGauge.
Prev: CC71 Up: Map Next: CCD2