Prev: 36193 Up: Map Next: 36215
36205: Auto Walk Step
Used by the routine at ControlPlayer.
Counts down the bottom four bits of offset 2 of an entity, if they are not zero. While they are not zero UpdateVelocity moves the entity by a fixed step in the direction it is going, rather than by the controls.
Input
IX The entity
AutoWalkStep 36205 LD A,(IX+2) Fetch offset 2 of the entity.
36208 AND %00001111 Keep only bits 0-3.
36210 RET Z Return if the result is zero.
36211 DEC (IX+2) Decrease offset 2 of the entity by one.
36214 RET Return.
Prev: 36193 Up: Map Next: 36215