![]() |
Routines |
| Prev: 29210 | Up: Map | Next: 29274 |
|
Used by the routine at UpdateBonusItem.
Empties the cubby hole and removes the bonus item, and adds 4096 points (as BCD) to the score. Then it plays a tone, and goes back to the start of the main loop at MainLoop_NewPass.
|
||||||||||
| CollectBonusItem | 29257 | LD (HL),0 | Write 0 to the cubby hole. | |||||||
| 29259 | CALL RemoveEntity | Erase the previous sprite using RemoveEntity. | ||||||||
| 29262 | LD BC,4096 | BC=4096 (the points). | ||||||||
| 29265 | CALL AddPointsToScore | Add the points to the score using AddPointsToScore. | ||||||||
| 29268 | LD (IX+0),0 | Write 0 to the state of the bonus item. | ||||||||
| 29272 | JR SpawnBonusItem_Tone | Jump to SpawnBonusItem_Tone. | ||||||||
| Prev: 29210 | Up: Map | Next: 29274 |