Prev: 48240 Up: Map Next: 48285
48259: Handle Last Appearing Sparkle
The handler for the last of the sparkles in which the player appears (object 63). The object stops moving and gets back the sprite number which was kept at offset 16 of its record, and the object is handled again straight away with that sprite number.
Input
IX The address of the object
Stop the sparkle and restore the object.
HandleLastAppearingSparkle 48259 CALL SetPixelAdjustments_Appearing Call SetPixelAdjustments_Appearing.
48262 XOR A Set the x, y and z speeds to 0.
48263 LD (IX+9),A
48266 LD (IX+10),A
48269 LD (IX+11),A
48272 RES 6,(IX+13) Reset bit 6 of the flags.
48276 LD A,(IX+16) Fetch the sprite number which was kept.
48279 LD (IX+0),A Restore the sprite number of the object.
48282 JP RunGame_UpdateObject Jump to RunGame_UpdateObject.
Prev: 48240 Up: Map Next: 48285