Prev: 45452 Up: Map Next: 45486
45468: Handle Homing Sparkle
The handler for the sparkles which fly towards the player (objects 76 to 79). 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 45468 CALL SetPixelAdjustments_Sparkle Call SetPixelAdjustments_Sparkle.
45471 LD BC,1028 Set the speed along each axis to 4.
45474 CALL SetSpeedTowardsPlayer Call SetSpeedTowardsPlayer.
45477 CALL ApplyGravityAndMove Call ApplyGravityAndMove.
45480 CALL NextSpriteNumber Call NextSpriteNumber.
45483 JP PlaySoundAndRedraw Jump to PlaySoundAndRedraw.
Prev: 45452 Up: Map Next: 45486