![]() |
Routines |
| Prev: 36512 | Up: Map | Next: 36591 |
|
Used by the routine at HandleTouchingCreature.
Takes 32 from the energy of the player in PlayerEnergy, which is what happens when a creature touches them (see HandleTouchingCreature). The chicken is redrawn by DrawChicken. If the energy is gone then LoseLife takes a life.
|
||||
| HurtPlayer | 36567 | LD A,(24104) | Fetch the energy of the player from PlayerEnergy. | |
| 36570 | SUB 32 | Subtract 32. | ||
| 36572 | JR Z,HurtPlayer_NoEnergy | Jump to HurtPlayer_NoEnergy if the energy is zero. | ||
| 36574 | JR NC,HurtPlayer_Update | Jump to HurtPlayer_Update if there is some energy left. | ||
| 36576 | XOR A | A=0 (no energy left). | ||
| HurtPlayer_NoEnergy | 36577 | LD (24104),A | Update the energy of the player in PlayerEnergy. | |
| 36580 | CALL DrawChicken | Call DrawChicken to redraw the chicken. | ||
| 36583 | JR LoseLife | Jump to LoseLife to take a life from the player. | ||
| HurtPlayer_Update | 36585 | LD (24104),A | Update the energy of the player in PlayerEnergy. | |
| 36588 | JP DrawChicken | Jump to DrawChicken to redraw the chicken. | ||
| Prev: 36512 | Up: Map | Next: 36591 |