![]() |
Routines |
| Prev: AA00 | Up: Map | Next: AA27 |
|
Handles the player after they have landed (sprite IDs 41 42 45 and 46). When the counter in IX+02 runs out the player either starts again or loses a life (see HandlePlayerDeath). If the player has no lives left then they are shown as dead when the counter reaches 30.
|
||||||||
| HandlerSittingSabreman | AA0D | CALL StoreEntity | Remember the previous position of the player. | |||||
| AA10 | DEC (IX+$02) | Decrease the sitting counter by one and jump to HandlePlayerDeath if it has run out. | ||||||
| AA13 | JR Z,HandlePlayerDeath | |||||||
| AA15 | LD A,($96BD) | Fetch the number of lives from ActivePlayer_Lives. | ||||||
| AA18 | AND A | Jump to HandlePlayerDeath_Draw if the player has lives left. | ||||||
| AA19 | JR NZ,HandlePlayerDeath_Draw | |||||||
| AA1B | LD A,(IX+$02) | Fetch the sitting counter of the player. | ||||||
| AA1E | CP $30 | Jump to HandlePlayerDeath_Draw if the sitting counter is not 30. | ||||||
| AA20 | JR NZ,HandlePlayerDeath_Draw | |||||||
| AA22 | INC (IX+$00) | Move the player on to the dead sprite. | ||||||
| AA25 | JR HandlePlayerDeath_Draw | Jump to HandlePlayerDeath_Draw. | ||||||
| Prev: AA00 | Up: Map | Next: AA27 |