![]() |
Routines |
| Prev: 42639 | Up: Map | Next: 42697 |
|
Used by the routine at InitialiseGame.
Gives both players the starting values. In a game for one player the second player is left with no lives.
|
||||
|
Set up both players.
|
||||
| SetUpPlayers | 42677 | CALL SetUpPlayer | Set up the first player. | |
| 42680 | CALL SwapPlayerStates | Swap to the state of the second player. | ||
| 42683 | CALL SetUpPlayer | Set up the second player. | ||
|
In a one player game, leave the second player with no lives.
|
||||
| 42686 | LD A,(41500) | Fetch the option flags. | ||
| 42689 | BIT 0,A | Test bit 0, which is set for a two player game. | ||
| 42691 | RET NZ | Return if there are two players. | ||
| 42692 | XOR A | Write 0 to OtherPlayerLives to leave the second player with no lives. | ||
| 42693 | LD (41590),A | |||
| 42696 | RET | Return. | ||
| Prev: 42639 | Up: Map | Next: 42697 |