Prev: 25690 Up: Map Next: 25731
25708: Display Cups Collected
Used by the routines at HandlerCup and CreateWindow.
Shows a cup sprite and the number of cups collected.
Prints the cup sprite to the screen.
DisplayCupsCollected 25708 LD HL,26414 HL=26414 (pixel co-ordinates: H is the Y position and L is the X position).
25711 LD DE,32586 Point DE at the cup sprite (Sprite_Cup).
25714 CALL PrepareActorSprite_Shift Call PrepareActorSprite_Shift to set up the sprite at these co-ordinates.
25717 CALL DrawEntity_NoOldSprite Call DrawEntity_NoOldSprite to draw the sprite.
Print the "cups collected" count to the screen.
25720 LD DE,24124 Point DE at the number of cups collected (Cups_Collected).
25723 LD HL,18630 Set the screen address of the count, 18630.
25726 LD B,1 Set the digit counter to 1.
25728 JP PrintScore_SecondDigit Jump to PrintScore_SecondDigit to print the count as a single digit.
Prev: 25690 Up: Map Next: 25731