Prev: 48214 Up: Map Next: 48259
48240: Handle Player Appearing
The handler for the sparkles in which the player appears at the start of a life (objects 56 to 62). 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 48240 CALL SetPixelAdjustments_Appearing Call SetPixelAdjustments_Appearing.
48243 LD A,(23298) Fetch FrameCounter.
48246 CPL Invert it.
48247 AND %00000001 Keep only bit 0.
48249 RET NZ Return on every other frame.
48250 INC (IX+0) Move on to the next sprite number.
48253 CALL PlayAppearingSound Call PlayAppearingSound.
48256 JP SetWipeAndDrawFlags Jump to SetWipeAndDrawFlags.
View the equivalent code in;
Prev: 48214 Up: Map Next: 48259