Prev: 7204 Up: Map Next: 7226
7207: Update actor state.
Get sprite position/dimensions, and update actor. Used by the routines at 7226 and 7263.
Input
DE Address of header block for sprite or buffer data.
IX Actor object states: jetman, item, rocket, alien, etc.
Output
B Is the sprite width.
C Is always NULL.
HL Pixel coordinates (Y/X) of the actor
DE Start address pointing at the "sprite data" block.
7207 ld l,(ix+$01) L=actor X location
720a ld h,(ix+$02) H=actor Y location
720d ld a,(de) A=sprite header byte
720e inc de DE=next header value: sprite width
720f add a,l L=X column + header byte
7210 ld l,a
7211 ld ($5dcf),hl Set actor_coords variable with these actor coordinates
7214 call $72d0 HL=coord to screen address (using HL)
7217 ld a,(de) B=sprite width
7218 ld b,a
7219 ld ($5dc4),a
721c inc de A=next header value: sprite height
721d ld a,(de)
721e ld ($5dc6),a
7221 ld ($5dc3),a
7224 jr $7200 Set return values (DE points to sprite pixel data)
Prev: 7204 Up: Map Next: 7226