Prev: 52337 Up: Map Next: 52434
52421: 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 8 and redraws the gauge with DrawDirectionGauge.
Input
IX The player entity
UpdateDirectionGauge 52421 LD A,(IX+17) Fetch the heading.
52424 ADD A,8 Add 8.
52426 AND %00111111 Use bits 0-5.
52428 LD (23768),A Write A at ScratchValue.
52431 JP DrawDirectionGauge Jump to DrawDirectionGauge.
Prev: 52337 Up: Map Next: 52434