Prev: C97A Up: Map Next: C98B
C97F: Next frame of a walk cycle
Used by the routines at legs_animate_and_draw and legs_to_rest.
The low three bits of the type are the frame of a six-frame walk cycle; this steps to the next, wrapping 5 to 0. Also used by legs_animate_and_draw.
Input
IX the object
animate_human_legs C97F LD A,(IX+$00) frame + 1, and 6 wraps to 0
C982 LD E,A
C983 INC A
C984 AND $07
C986 CP $06
C988 JR NZ,store_leg_frame
C98A XOR A
Prev: C97A Up: Map Next: C98B