![]() |
Routines |
| Prev: B1D4 | Up: Map | Next: B21E |
|
Used by the routine at HandlePlayerDeath.
Used when a player has died in a two player game. Swaps over the state of the two players, clears the screen and makes the new player stand up with the normal colour, then carries on at InitialiseGame_StartTurn.
|
||||
| SwitchPlayer | B205 | CALL ChangePlayer | Swap over the states of the two players. | |
| B208 | CALL ClearPlayArea_Attributes | Clear the attribute buffer of the play area. | ||
| B20B | CALL ClearPlayArea | Clear the play area. | ||
| B20E | LD A,(IX+$00) | Fetch the sprite ID of the player. | ||
| B211 | AND %00000111 | Keep only bits 0-2. | ||
| B213 | OR %00010000 | Set bit 4, giving a sprite ID of 10 to 17. | ||
| B215 | LD (IX+$00),A | Set the new sprite ID of the player. | ||
| B218 | LD (IX+$05),$47 | Set the colour of the player to INK:WHITE, PAPER:BLACK (BRIGHT). | ||
| B21C | JR InitialiseGame_StartTurn | Jump to InitialiseGame_StartTurn to start the turn. | ||
| Prev: B1D4 | Up: Map | Next: B21E |