![]() |
Routines |
| Prev: CC8A | Up: Map | Next: CCAE |
|
Used by the routine at SlowPlayerDown.
Sets the speed and moves the sheriff one step in the direction of his heading, stopping at walls. A step plays PlayFootstepSound and PlayMovementSound, and moves on to the next walking frame.
|
||||||||||
|
Set the speed and check the walls. Keep the flags from before the check for PlayFootstepSound.
|
||||||||||
| MovePlayerForward | CC97 | LD (IX+$05),A | Set the speed. | |||||||
| CC9A | CALL SetSpeedsFromHeading | Call SetSpeedsFromHeading. | ||||||||
| CC9D | LD A,(IX+$07) | Fetch the flags. | ||||||||
| CCA0 | PUSH AF | Stash the flags on the stack. | ||||||||
| CCA1 | CALL TestMove | Call TestMove. | ||||||||
| CCA4 | POP AF | Restore the flags from the stack. | ||||||||
|
Play the sounds and move the sheriff.
|
||||||||||
| CCA5 | CALL PlayFootstepSound | Call PlayFootstepSound. | ||||||||
| CCA8 | CALL MoveObject | Call MoveObject. | ||||||||
| CCAB | CALL PlayMovementSound | Call PlayMovementSound. | ||||||||
|
Continue on to NextSpriteNumber.
|
||||||||||
| Prev: CC8A | Up: Map | Next: CCAE |