![]() |
Routines |
| Prev: A1D8 | Up: Map | Next: A1EA |
|
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.
|
||||||||||||||||||
| 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 |