![]() |
Routines |
| Prev: 44783 | Up: Map | Next: 44993 |
|
Used by the routine at GamePlay_Start.
Adds an acceleration to the velocity of the player in both directions and limits the result to the top speed (see LimitPlayerVelocity).
|
||||||||||||
| AcceleratePlayer | 44972 | LD A,E | Fetch the X acceleration. | |||||||||
| 44973 | ADD A,(IX+6) | Add the X velocity of the player. | ||||||||||
| 44976 | CALL LimitPlayerVelocity | Limit the X velocity. | ||||||||||
| 44979 | LD (IX+6),A | Set the new X velocity of the player. | ||||||||||
| 44982 | LD A,D | Fetch the Y acceleration. | ||||||||||
| 44983 | ADD A,(IX+7) | Add the Y velocity of the player. | ||||||||||
| 44986 | CALL LimitPlayerVelocity | Limit the Y velocity. | ||||||||||
| 44989 | LD (IX+7),A | Set the new Y velocity of the player. | ||||||||||
| 44992 | RET | Return. | ||||||||||
| Prev: 44783 | Up: Map | Next: 44993 |