Prev: 8D61 Up: Map Next: 8D77
8D6D: Auto Walk Step
Used by the routine at ControlPlayer.
Counts down the bottom four bits of offset 02 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 8D6D LD A,(IX+$02) Fetch offset 02 of the entity.
8D70 AND %00001111 Keep only bits 0-3.
8D72 RET Z Return if the result is zero.
8D73 DEC (IX+$02) Decrease offset 02 of the entity by one.
8D76 RET Return.
Prev: 8D61 Up: Map Next: 8D77