![]() |
Routines |
| Prev: A4A6 | Up: Map | Next: A4C3 |
|
Used by the routine at BlowUpActor.
Adds points to the score for blowing up an actor. The points are 100 plus a value of 65 75 85 or 95 depending on bits 1-2 of the sprite ID, so they are 165, 175, 185 or 195.
|
||||||||
| AwardActorPoints | A4B3 | LD A,(IX+$00) | Fetch the sprite ID of the actor. | |||||
| A4B6 | RLCA | Rotate the sprite ID left three times. | ||||||
| A4B7 | RLCA | |||||||
| A4B8 | RLCA | |||||||
| A4B9 | AND %00110000 | Keep only the type of the actor (bits 4-5). | ||||||
| A4BB | ADD A,$65 | Add 65. | ||||||
| A4BD | LD C,A | Stash the low byte of the points in C. | ||||||
| A4BE | LD B,$01 | Set the high byte of the points in B to 01. | ||||||
| A4C0 | JP AddPointsToScore | Jump to AddPointsToScore to add the points to the score. | ||||||
| Prev: A4A6 | Up: Map | Next: A4C3 |