Prev: CB5A Up: Map Next: CBC3
CB8A: Print Border
Used by the routines at GameOver and DisplayTextList.
Draws the border around the playing area, using the sprites in the table at BorderSprites. The four corners are drawn first, then the top and bottom edges, which are each made of 18 sprites that are eight pixels wide, and the left and right edges, which are each made of 80 sprites that are one pixel high.
Corners, then the four edges.
PrintBorder CB8A LD IX,$BD38 Point IX at SpriteObject.
CB8E LD HL,$CBC3 Point HL at BorderSprites.
CB91 CALL PrintTableSprite Call PrintTableSprite.
CB94 CALL PrintTableSprite Call PrintTableSprite.
CB97 CALL PrintTableSprite Call PrintTableSprite.
CB9A CALL PrintTableSprite Call PrintTableSprite.
CB9D CALL SetSpriteDetails Call SetSpriteDetails.
CBA0 LD DE,$0008 Set DE to 0008.
CBA3 LD B,$18 Set B to 18.
CBA5 CALL PrintSprites Call PrintSprites.
CBA8 CALL SetSpriteDetails Call SetSpriteDetails.
CBAB LD B,$18 Set B to 18.
CBAD CALL PrintSprites Call PrintSprites.
CBB0 CALL SetSpriteDetails Call SetSpriteDetails.
CBB3 LD DE,$0100 Set DE to 0100.
CBB6 LD B,$80 Set B to 80.
CBB8 CALL PrintSprites Call PrintSprites.
CBBB CALL SetSpriteDetails Call SetSpriteDetails.
CBBE LD B,$80 Set B to 80.
CBC0 JP PrintSprites Jump to PrintSprites.
View the equivalent code in;
Prev: CB5A Up: Map Next: CBC3