Prev: 721A Up: Map Next: 725A
7249: Collect Bonus Item
Used by the routine at UpdateBonusItem.
Empties the cubby hole and removes the bonus item, and adds 1000 points (as BCD) to the score. Then it plays a tone, and goes back to the start of the main loop at MainLoop_NewPass.
Input
HL The cubby hole
IX The bonus item
CollectBonusItem 7249 LD (HL),$00 Write 00 to the cubby hole.
724B CALL RemoveEntity Erase the previous sprite using RemoveEntity.
724E LD BC,$1000 BC=1000 (the points).
7251 CALL AddPointsToScore Add the points to the score using AddPointsToScore.
7254 LD (IX+$00),$00 Write 00 to the state of the bonus item.
7258 JR SpawnBonusItem_Tone Jump to SpawnBonusItem_Tone.
Prev: 721A Up: Map Next: 725A