Prev: 24667 Up: Map Next: 24721
24701: Display Congratulations Messaging
Used by the routine at HandlerCup.
Prints the four lines of the message shown when all eight cups have been collected. It sets up the shadow registers, as GameMenu does, and then reuses the printing loop at GameMenu_Loop.
Before After
congratulations-before congratulations-after
DisplayCongratsMessaging 24701 LD A,80 Write the X position of the message text, 80 to Temp_Text_Pos_X.
24703 LD (24136),A
24706 LD DE,24721 Point DE at the table of line colours (CongratsMessaging_Attributes).
24709 EXX Switch to the shadow registers.
24710 LD HL,24725 Point HL' at the table of line Y positions (CongratsMessaging_Position).
24713 LD DE,24729 Point DE' at the congratulations text (Message_Congrats).
24716 LD B,4 Set the line counter to 4 one for each line of the message.
24718 JP GameMenu_Loop Jump to GameMenu_Loop to print the lines of the message.
Prev: 24667 Up: Map Next: 24721