Prev: 52058 Up: Map Next: 52163
52106: 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 24 sprites that are eight pixels wide, and the left and right edges, which are each made of 128 sprites that are one pixel high.
Corners, then the four edges.
PrintBorder 52106 LD IX,48440 Point IX at SpriteObject.
52110 LD HL,52163 Point HL at BorderSprites.
52113 CALL PrintTableSprite Call PrintTableSprite.
52116 CALL PrintTableSprite Call PrintTableSprite.
52119 CALL PrintTableSprite Call PrintTableSprite.
52122 CALL PrintTableSprite Call PrintTableSprite.
52125 CALL SetSpriteDetails Call SetSpriteDetails.
52128 LD DE,8 Set DE to 0008.
52131 LD B,24 Set B to 24.
52133 CALL PrintSprites Call PrintSprites.
52136 CALL SetSpriteDetails Call SetSpriteDetails.
52139 LD B,24 Set B to 24.
52141 CALL PrintSprites Call PrintSprites.
52144 CALL SetSpriteDetails Call SetSpriteDetails.
52147 LD DE,256 Set DE to 256.
52150 LD B,128 Set B to 128.
52152 CALL PrintSprites Call PrintSprites.
52155 CALL SetSpriteDetails Call SetSpriteDetails.
52158 LD B,128 Set B to 128.
52160 JP PrintSprites Jump to PrintSprites.
View the equivalent code in;
Prev: 52058 Up: Map Next: 52163