![]() |
Routines |
| Prev: B1AB | Up: Map | Next: B1D4 |
|
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 | B1B7 | LD HL,$9702 | Point HL at the player's actor at ImmortalData. | |
| B1BA | LD A,$10 | Set the nastie spawn delay in NastieSpawnDelay to 10. | ||
| B1BC | LD ($96B1),A | |||
| B1BF | LD A,$80 | Set the flame spawn delay in FlameSpawnDelay to 80. | ||
| B1C1 | LD ($96B4),A | |||
| B1C4 | LD A,$80 | Set the start-of-turn delay in GameDelayTimer to 80. | ||
| B1C6 | LD ($96B5),A | |||
| B1C9 | XOR A | Clear the orchid effect timer in OrchidEffectTimer. | ||
| B1CA | LD ($96B0),A | |||
| B1CD | LD HL,$96BD | Point HL at the number of lives at ActivePlayer_Lives. | ||
|
See Infinite Lives Player 2.
|
||||
| B1D0 | DEC (HL) | Decrease the number of lives by one. | ||
| B1D1 | JP DisplayPlayerLives | Jump to DisplayPlayerLives to update the lives display. | ||
| Prev: B1AB | Up: Map | Next: B1D4 |