Prev: BC56 Up: Map Next: BC83
BC70: Handle Player Appearing
The handler for the sparkles in which the player appears at the start of a life (objects 38 to 3E). 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 BC70 CALL SetPixelAdjustments_Appearing Call SetPixelAdjustments_Appearing.
BC73 LD A,($5B02) Fetch FrameCounter.
BC76 CPL Invert it.
BC77 AND %00000001 Keep only bit 0.
BC79 RET NZ Return on every other frame.
BC7A INC (IX+$00) Move on to the next sprite number.
BC7D CALL PlayAppearingSound Call PlayAppearingSound.
BC80 JP SetWipeAndDrawFlags Jump to SetWipeAndDrawFlags.
View the equivalent code in;
Prev: BC56 Up: Map Next: BC83