Prev: A234 Up: Map Next: A25D
A247: Set up the new image's draw
Used by the routines at prepare_draw and draw_star_layer.
As set_old_sprite for the new image: its height (new_sprite_rows) and width, its draw-row routine from draw_row_routines into IX, and its shift page into B.
Input
B Height
H Width in bytes
C Row routine index (read_graphic_header)
Output
IX The draw-row routine
B The shift tables' page
set_new_sprite A247 LD A,B
A248 LD (new_sprite_rows),A
A24B LD A,H
A24C LD (sprite_width_drawn),A
A24F LD HL,draw_row_routines
A252 CALL table_word
A255 PUSH HL
A256 POP IX
A258 LD A,(new_sprite_x)
A25B JR shift_page_0
Prev: A234 Up: Map Next: A25D