Prev: D27E Up: Map Next: D2CF
D296: Draw the border round the play area
Used by the routines at print_charms_and_show and display_text_list.
From border_data: one corner sprite drawn four times, flipped each way, then the top and bottom edges as 24 pieces 8 pixels apart and the two sides as 128 pieces a pixel apart.
print_border D296 LD IX,sprite_scratchpad the four corners
D29A LD HL,border_data
D29D CALL transfer_sprite_and_print
D2A0 CALL transfer_sprite_and_print
D2A3 CALL transfer_sprite_and_print
D2A6 CALL transfer_sprite_and_print
D2A9 CALL transfer_sprite the top edge: 24 pieces, 8 pixels apart
D2AC LD DE,$0008
D2AF LD B,$18
D2B1 CALL multiple_print_sprite
D2B4 CALL transfer_sprite the bottom edge
D2B7 LD B,$18
D2B9 CALL multiple_print_sprite
D2BC CALL transfer_sprite the left edge: 128 pieces, stepping up a pixel at a time
D2BF LD DE,$0100
D2C2 LD B,$80
D2C4 CALL multiple_print_sprite
D2C7 CALL transfer_sprite the right edge
D2CA LD B,$80
D2CC JP multiple_print_sprite
Prev: D27E Up: Map Next: D2CF