Prev: D6D6 Up: Map Next: D727
D70A: Update Fragment
The routine for objects of type 8C to 8F, the fragments that fly out of a monster that has been destroyed. A fragment moves in a straight line, and turns into a burst when it hits something.
UpdateFragment D70A RES 1,(IX+$07) Clear the flag that shows that the fragment has been drawn.
D70E LD A,(IX+$05) Set the velocity of the fragment from its speed and direction.
D711 CALL SetVelocityFromSpeed
D714 CALL TestMove Check whether the scenery blocks the move.
D717 CALL MoveObject Move the fragment.
D71A CALL NextSpriteNumber Change the sprite of the fragment.
D71D BIT 0,(IX+$07) Return if the fragment has not hit anything.
D721 RET Z
D722 LD (IX+$00),$0C Turn the fragment into a burst and return.
D726 RET
Prev: D6D6 Up: Map Next: D727