Prev: A1D8 Up: Map Next: A1EA
A1D9: Read the new image's graphic header and clip it
Used by the routines at prepare_draw and draw_star_layer.
Reads the width and height at the head of the new image's graphic and clips its rows to the play area (clip_sprite_rows), updating new_sprite_y.
Input
DE The graphic
Output
DE Its first row of data to draw (clipped)
H Its width in bytes
B Rows to draw
C Which row routine it needs (see read_graphic_header)
new_sprite_header A1D9 LD HL,(new_sprite_x)
A1DC CALL read_graphic_header
A1DF LD A,(new_sprite_y)
A1E2 CALL clip_sprite_rows
A1E5 LD A,L
A1E6 LD (new_sprite_y),A
A1E9 RET
Prev: A1D8 Up: Map Next: A1EA