Prev: 44450 Up: Map Next: 44477
44467: Turn Wulf Around
Used by the routine at HandlerWulf.
Turns a Wulf or a tribesman around, by flipping bit 2 of the sprite ID and reversing the X velocity.
Input
IX Actor record
TurnWulfAround 44467 LD A,(IX+0) Fetch the sprite ID of the actor.
44470 XOR %00000100 Flip bit 2 (the direction the actor is facing).
44472 LD (IX+0),A Set the new sprite ID of the actor.
44475 JR TurnRhinoAround_Velocity Jump to TurnRhinoAround_Velocity to reverse the X velocity.
Prev: 44450 Up: Map Next: 44477