![]() |
Routines |
| Prev: 36193 | Up: Map | Next: 36215 |
|
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.
|
||||||||
| 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 |