Prev: 59515 Up: Map Next: 59554
59540: Knock Sabreman Down
Used by the routine at Handle_Sabreman_Walking.
Makes Sabreman tumble when he has been hit by a bubble. The y velocity is the value in B, the countdown in byte 10 is set to 20 and the sprite id to 24 (tumbling). Sabreman is drawn and the routine returns to the main loop.
Input
B Y velocity
IX Object record of Sabreman
Knock_Sabreman_Down 59540 LD (IX+10),20 Set the countdown to 20.
This entry point is used by the routine at Handle_Sabreman_Falling.
Knock_Sabreman_Down_Set_Velocity 59544 LD (IX+9),B Set the y velocity.
59547 LD (IX+0),24 Set the sprite id to 24 (tumbling).
59551 JP Update_Object_Sprite Jump to Update_Object_Sprite.
Prev: 59515 Up: Map Next: 59554