Prev: 51621 Up: Map Next: 51741
51719: Lose Life
Used by the routine at StartLife.
Puts the player back as it was when it entered the room (see PlayerCopy), and takes a life off. If there are no lives left the game is over.
Restore the player and take a life.
LoseLife 51719 LD HL,51741 Point HL at PlayerCopy.
51722 LD DE,23432 Point DE at PlayerBottomObject.
51725 PUSH DE Point IX at PlayerBottomObject (using the stack).
51726 POP IX
51728 LD BC,64 Set BC to 0064.
51731 LDIR Copy the player back.
51733 LD HL,23322 Point HL at Lives.
51736 DEC (HL) Decrement it.
51737 JP M,GameOver Jump to GameOver if the sign flag is set.
51740 RET Return.
View the equivalent code in;
Prev: 51621 Up: Map Next: 51741