![]() |
Routines |
| Prev: 45483 | Up: Map | Next: 45524 |
|
Used by the routine at InitialiseGame.
Sets up the delays at the start of a turn of a player, removes any orchid effect, takes one life from the player and displays the new number of lives. The start-of-turn delay (GameDelayTimer) is also what flashes the score label of the player (see GamePlayEntry).
|
||||
| StartTurn | 45495 | LD HL,38658 | Point HL at the player's actor at ImmortalData. | |
| 45498 | LD A,16 | Set the nastie spawn delay in NastieSpawnDelay to 16. | ||
| 45500 | LD (38577),A | |||
| 45503 | LD A,128 | Set the flame spawn delay in FlameSpawnDelay to 128. | ||
| 45505 | LD (38580),A | |||
| 45508 | LD A,128 | Set the start-of-turn delay in GameDelayTimer to 128. | ||
| 45510 | LD (38581),A | |||
| 45513 | XOR A | Clear the orchid effect timer in OrchidEffectTimer. | ||
| 45514 | LD (38576),A | |||
| 45517 | LD HL,38589 | Point HL at the number of lives at ActivePlayer_Lives. | ||
|
See Infinite Lives Player 2.
|
||||
| 45520 | DEC (HL) | Decrease the number of lives by one. | ||
| 45521 | JP DisplayPlayerLives | Jump to DisplayPlayerLives to update the lives display. | ||
| Prev: 45483 | Up: Map | Next: 45524 |