Prev: B18C Up: Map Next: B1AE
B19C: Handle Homing Sparkle
The handler for the sparkles which fly towards the player (objects 4C to 4F). They move at a speed of four along each axis and step through their four animation frames.
Input
IX The address of the object
Head towards the player and redraw.
HandleHomingSparkle B19C CALL SetPixelAdjustments_Sparkle Call SetPixelAdjustments_Sparkle.
B19F LD BC,$0404 Set the speed along each axis to 04.
B1A2 CALL SetSpeedTowardsPlayer Call SetSpeedTowardsPlayer.
B1A5 CALL ApplyGravityAndMove Call ApplyGravityAndMove.
B1A8 CALL NextSpriteNumber Call NextSpriteNumber.
B1AB JP PlaySoundAndRedraw Jump to PlaySoundAndRedraw.
Prev: B18C Up: Map Next: B1AE