Prev: 42812 Up: Map Next: 42845
42818: Handler: Small Explosion
Step a small explosion through its frames (types 100 to 102), then clear the slot once it reaches type 103.
Input
IX Actor slot
Draw the current explosion frame and step the type.
Handler_SmallExplosion 42818 CALL DrawObjectSprite Call DrawObjectSprite.
42821 CALL ColouriseSprite Call ColouriseSprite.
42824 INC (IX+0) Increment the actor type by one.
42827 RET Return.
Play the explosion sound, then clear the slot.
Handler_SmallExplosion_PlaySound 42828 LD A,(IX+10) Fetch *IX+10.
42831 AND A Jump to Handler_SmallExplosion_ClearType if it is zero.
42832 JR Z,Handler_SmallExplosion_ClearType
42834 CALL SoundsExplosion Call SoundsExplosion.
Handler_SmallExplosion_ClearType 42837 CALL ClearMaskScratch Call ClearMaskScratch.
42840 LD (IX+0),0 Write 0 to the actor type.
42844 RET Return.
Prev: 42812 Up: Map Next: 42845