Prev: 43520 Up: Map Next: 43559
43533: Handler: Sitting Sabreman
Handles the player after they have landed (sprite IDs 65 66 69 and 70). When the counter in IX+2 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 48.
Input
IX Actor record of the player
HandlerSittingSabreman 43533 CALL StoreEntity Remember the previous position of the player.
43536 DEC (IX+2) Decrease the sitting counter by one and jump to HandlePlayerDeath if it has run out.
43539 JR Z,HandlePlayerDeath
43541 LD A,(38589) Fetch the number of lives from ActivePlayer_Lives.
43544 AND A Jump to HandlePlayerDeath_Draw if the player has lives left.
43545 JR NZ,HandlePlayerDeath_Draw
43547 LD A,(IX+2) Fetch the sitting counter of the player.
43550 CP 48 Jump to HandlePlayerDeath_Draw if the sitting counter is not 48.
43552 JR NZ,HandlePlayerDeath_Draw
43554 INC (IX+0) Move the player on to the dead sprite.
43557 JR HandlePlayerDeath_Draw Jump to HandlePlayerDeath_Draw.
Prev: 43520 Up: Map Next: 43559