Prev: 48868 Up: Map Next: 48913
48894: Handle Player Appearing
The handler for the sparkles in which the player appears at the start of a life (graphics 120 to 126). On every other frame it moves on to the next of the animation frames and plays a sound.
Input
IX The address of the object
Advance the sparkle on every other frame.
HandlePlayerAppearing 48894 CALL SetPixelAdjustments_Sparkle Call SetPixelAdjustments_Sparkle.
48897 LD A,(23458) Fetch FrameCounter.
48900 CPL Invert it.
48901 AND %00000001 Keep only bit 0.
48903 RET NZ Return on every other frame.
48904 INC (IX+0) Move on to the next sprite number.
48907 CALL PlayAppearingSound Call PlayAppearingSound.
48910 JP SetWipeAndDrawFlags Jump to SetWipeAndDrawFlags.
View the equivalent code in;
Prev: 48868 Up: Map Next: 48913