Prev: A75D Up: Map Next: A783
A766: Start Explosion
If the actor's explode flag is set, switch to sprite 5C and pick a fragment colour.
Input
IX Actor slot
Switch to sprite 5C when the explode flag is set.
StartExplosion A766 BIT 0,(IX+$10) Return if bit 0 of *IX+10 is not set.
A76A RET Z
""Sparkle Burst: Frame 1"".
StartExplosion_SetSprite A76B LD (IX+$00),$5C *IX+00=5C.
A76F CALL InitialiseExplosion_4 Call InitialiseExplosion_4.
Pick a fragment colour from RandomNumber.
StartExplosion_PickOffset A772 LD A,($5E40) Fetch RandomNumber.
A775 AND %00000011 Keep only bits 0-1.
A777 LD C,A Create an offset in BC.
A778 LD B,$00
A77A LD HL,$A792 HL=FragmentColours+offset.
A77D ADD HL,BC
A77E LD A,(HL) Fetch the colour.
A77F LD (IX+$07),A Write it to the actor colour.
A782 RET Return.
View the equivalent code in;
Prev: A75D Up: Map Next: A783