![]() |
Routines |
| Prev: 47611 | Up: Map | Next: 47715 |
|
Used by the routine at HandleShotOutlaw.
Draws the face of the outlaw, which is five sprites, into the buffer, below the body.
|
||||||||
|
Find the face sprites for this outlaw.
|
||||||||
| DrawOutlawFace | 47687 | LD A,(41568) | Fetch the level. | |||||
| 47690 | EX DE,HL | Swap the address in the buffer into DE. | ||||||
| 47691 | LD HL,46228 | Point HL at OutlawNumbers. | ||||||
| 47694 | CALL AddAToHL | Point HL at the entry for the level. | ||||||
| 47697 | LD L,(HL) | Fetch the number of the outlaw. | ||||||
| 47698 | LD H,0 | Set the high byte. | ||||||
| 47700 | LD C,L | Make the outlaw number a sixteen bit index in BC. | ||||||
| 47701 | LD B,H | |||||||
| 47702 | ADD HL,HL | Multiply it by four. | ||||||
| 47703 | ADD HL,HL | |||||||
| 47704 | ADD HL,BC | Add the number to make it five times as big. | ||||||
| 47705 | LD BC,46512 | Point BC at FaceImageNumbers. | ||||||
| 47708 | ADD HL,BC | Point HL at the sprites of his face. | ||||||
| 47709 | EX DE,HL | Swap the pointer to the face into DE and the address back into HL. | ||||||
|
Draw the five sprites of the face.
|
||||||||
| 47710 | LD B,5 | Set the number of sprites to five. | ||||||
| 47712 | JP DrawWideSprites | Jump to DrawWideSprites. | ||||||
| Prev: 47611 | Up: Map | Next: 47715 |