Prev: 48433 Up: Map Next: 48536
48473: Print Border
Used by the routines at DisplayMenu and ShowGameOverScreen.
Draws the frame around the title screen, and around the end screens, into the buffer, from the pieces whose data starts at MenuFramePieces. The four corners are drawn first, then the top and bottom edges, which are each made of 8 sprites that are 24 pixels apart, and the left and right edges, which are each made of 6 sprites that are 24 pixels apart.
Before After PrintBorder and UpdateScreen
print-border-before print-border-after
Corners, then the four edges.
PrintBorder 48473 LD IX,47818 Use the temporary object, TemporaryObject.
48477 LD HL,48536 Point HL at MenuFramePieces.
Draw the four corners.
48480 CALL PrintTableSprite Call PrintTableSprite.
48483 CALL PrintTableSprite Call PrintTableSprite.
48486 CALL PrintTableSprite Call PrintTableSprite.
48489 CALL PrintTableSprite Call PrintTableSprite.
Draw the top edge and the bottom edge, which run to the right.
48492 CALL SetSpriteDetails Call SetSpriteDetails to set up the top edge.
48495 LD DE,24 Set DE to 0024.
48498 LD B,8 Set B to 8.
48500 CALL PrintSprites Call PrintSprites.
48503 CALL SetSpriteDetails Call SetSpriteDetails to set up the bottom edge.
48506 LD B,8 Set B to 8.
48508 CALL PrintSprites Call PrintSprites.
Draw the two pieces that finish the top and bottom edges.
48511 CALL PrintTableSprite Call PrintTableSprite.
48514 CALL PrintTableSprite Call PrintTableSprite.
Draw the left edge and the right edge, which run up.
48517 CALL SetSpriteDetails Call SetSpriteDetails to set up the left edge.
48520 LD DE,6144 Set DE to 6144.
48523 LD B,6 Set B to 6.
48525 CALL PrintSprites Call PrintSprites.
48528 CALL SetSpriteDetails Call SetSpriteDetails to set up the right edge.
48531 LD B,6 Set B to 6.
48533 JP PrintSprites Jump to PrintSprites.
View the equivalent code in;
Prev: 48433 Up: Map Next: 48536