Prev: 71ef Up: Map Next: 7200
71f2: Get sprite position and dimensions.
Note: the sprite header byte is added to the X position. So the question is: what is this header byte really for? Used by the routine at 687a.
Input
DE Address to the start of a Sprite or Buffer.
HL The Y,X coordinate of the sprite.
Output
B Is the sprite width.
C Is always NULL.
HL Screen address of sprite.
DE Address pointing to the pixel data block.
71f2 ld a,(de) A=header value: X position offset?
71f3 inc de DE=next header value: sprite width
71f4 add a,l L=X position + offset
71f5 ld l,a
71f6 call $72d0 HL=coord to screen address (using/returning HL)
71f9 ld a,(de) B=read sprite width again
71fa ld b,a
71fb inc de A=next header value: sprite height
71fc ld a,(de)
71fd ld ($5dc5),a
Prev: 71ef Up: Map Next: 7200