Prev: B785 Up: Map Next: B7BC
B7A8: Handler: Bomb
Steps the bomb through its four sprite frames and flips bit 0 of IX+07.
Input
IX Animation object
Animate the sprite.
Handler_Bomb B7A8 LD A,(IX+$00) A=*IX+00.
B7AB INC A Increment A by one.
The bomb has four frames of animation.
B7AC AND %00000011 Keep only bits 0-1.
With sprite IDs beginning from EC ("Bomb: Frame 1").
B7AE ADD A,$EC A=A+EC.
B7B0 LD (IX+$00),A Write A back to *IX+00.
B7B3 LD A,(IX+$07) A=*IX+07.
B7B6 XOR %00000001 Flip bit 0.
B7B8 LD (IX+$07),A Write A back to *IX+07.
B7BB RET Return.
Prev: B785 Up: Map Next: B7BC