Prev: 645A Up: Map Next: 6483
646C: 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 646C LD HL,$672E HL=672E (pixel co-ordinates: H is the Y position and L is the X position).
646F LD DE,$7F4A Point DE at the cup sprite (Sprite_Cup).
6472 CALL PrepareActorSprite_Shift Call PrepareActorSprite_Shift to set up the sprite at these co-ordinates.
6475 CALL DrawEntity_NoOldSprite Call DrawEntity_NoOldSprite to draw the sprite.
Print the "cups collected" count to the screen.
6478 LD DE,$5E3C Point DE at the number of cups collected (Cups_Collected).
647B LD HL,$48C6 Set the screen address of the count, 48C6.
647E LD B,$01 Set the digit counter to 01.
6480 JP PrintScore_SecondDigit Jump to PrintScore_SecondDigit to print the count as a single digit.
Prev: 645A Up: Map Next: 6483