Prev: CE89 Up: Map Next: CEC4
CEBB: Hurt Player
Used by the routines at UpdateGhost and UpdateCreature.
Turns the object that has touched the player into a burst, and takes one point of health from the player. When the player has no health left, the player dies.
Input
IX Object that touched the player
HurtPlayer CEBB LD (IX+$00),$0C Turn the object that touched the player into a burst.
CEBF LD HL,$BBF3 Take one point of health from the player, and return if there is some left.
CEC2 DEC (HL)
CEC3 RET NZ
Continue on to KillPlayer.
Prev: CE89 Up: Map Next: CEC4