Routines |
Prev: 62FF | Up: Map | Next: 6333 |
Used by the routine at StartGame.
|
||||
ResetPlayers | 630F | LD B,$02 | B=$02 | |
ResetPlayers_0 | 6311 | PUSH BC | Stores BC on the stack | |
6312 | XOR A | Clear A (sets to $00) | ||
6313 | LD ($5DF0),A | ActivePlayer_Level=A | ||
6316 | LD A,$04 | A=Number of lives for 1UP on starting a game | ||
6318 | LD ($5DF1),A | Updates ActivePlayer_Lives with the number of starting lives | ||
631B | CALL RocketReset | |||
631E | CALL ChangePlayer | |||
6321 | POP BC | |||
6322 | DJNZ ResetPlayers_0 | Decrease B by one, jump to ResetPlayers_0 if not zero | ||
6324 | LD A,$05 | A=Number of lives for 2UP on starting a game | ||
6326 | LD ($5DF9),A | Updates InactivePlayer_Lives with the number of starting lives | ||
6329 | LD A,($5CF3) | A=GameOptions | ||
632C | AND $01 | Return if this is a 2UP game | ||
632E | RET NZ | |||
632F | LD ($5DF9),A | Sets InactivePlayer_Lives to zero (as a 1UP game is in progress) | ||
6332 | RET | Return |
Prev: 62FF | Up: Map | Next: 6333 |