Prev: 54028 Up: Map Next: 54087
54039: Render HUD
Used by the routines at 53488 and PlayerDeath.
Clears the screen buffer, sets a white background, triggers the wave indicator animation (54640), and redraws the attribute bar (50963) before falling through to RenderHUD_Draw. Scores (50500) and lives (51092) are then rendered for each player in turn by swapping state with SwapPlayerState; the "WAVE" label and wave number (PrintWaveNumber) are printed last for player 1.
RenderHUD 54039 CALL ClearScreenBuffer Call ClearScreenBuffer.
54042 LD A,7 Call SetBackgroundColour using WHITE.
54044 CALL SetBackgroundColour
54047 CALL 54640 Call 54640.
54050 CALL 50963 Call 50963.
This entry point is used by the routine at 54028.
Shared entry point, also reached from 54028 via JP (which clears the screen and sets the background but skips the wave animation and attribute bar setup). Renders scores and lives for player 1, then swaps to player 2.
RenderHUD_Draw 54053 CALL 50500 Call 50500.
54056 CALL 51092 Call 51092.
Swap to player 2 to render their score, lives and wave number.
54059 CALL SwapPlayerState Call SwapPlayerState.
54062 CALL 50500 Call 50500.
54065 CALL 51092 Call 51092.
54068 CALL PrintWaveNumber Call PrintWaveNumber.
Swap back to player 1; print the "WAVE" label and player 1's wave number, then redraw the attribute bar to complete the HUD.
54071 CALL SwapPlayerState Call SwapPlayerState.
54074 LD HL,53478 Call PrintMessaging using Messaging_Wave.
54077 CALL PrintMessaging
54080 CALL PrintWaveNumber Call PrintWaveNumber.
54083 CALL 50963 Call 50963.
54086 RET Return.
Prev: 54028 Up: Map Next: 54087