Prev: 46981 Up: Map Next: 47036
47016: Handler: Bomb
Used by the routines at 46828 and 46981.
Input
IX Animation object
Animate the sprite.
Handler_Bomb 47016 LD A,(IX+0) A=IX+0.
47019 INC A Increment A by one.
The bomb has four frames of animation.
47020 AND %00000011 Keep only bits 0-1.
With sprite IDs beginning from 236 ("Bomb: Frame 1").
47022 ADD A,236 A=A+236.
47024 LD (IX+0),A Write A back to IX+0.
47027 LD A,(IX+7) A=IX+7.
47030 XOR %00000001
47032 LD (IX+7),A Write A back to IX+7.
47035 RET Return.
Prev: 46981 Up: Map Next: 47036