Prev: AF01 Up: Map Next: AF25
AF04: Colour the two parts drawn by carried_part bright white
Used by the routine at carried_part.
The end of carried_part, which draws two big parts of the ship's add-ons (addon_slab and addon_spire, the last two in addon_graphics's list, drawn from their third byte) at the positions in carried_big_x and carried_small_x: this colours each, 5 cells wide and $23 lines high for the first, 3 cells wide and $2F lines for the second, clipped at the top of the play area by clip_height_to_top. It joins colour_sprite for the height and the painting.
Never ran in the build's sessions: what the two parts are is read, not seen.
colour_carried_parts AF04 LD A,$47 bright white on black
AF06 LD ($AF03),A
AF09 LD HL,(carried_big_x) the first part: 5 cells wide, $23 lines high
AF0C LD B,$23
AF0E LD A,$05
AF10 CALL colour_carried_parts_0
AF13 LD HL,(carried_small_x) the second: 3 cells wide, $2F lines high
AF16 LD B,$2F
AF18 LD A,$03
colour_carried_parts_0 AF1A LD (colour_patch),A the width; the height clipped at the play area's top (clip_height_to_top) into D; colour it
AF1D LD A,B
AF1E CALL clip_height_to_top
AF21 LD D,B
AF22 JP colour_sprite_5
Prev: AF01 Up: Map Next: AF25