![]() |
Routines |
| Prev: 7024 | Up: Map | Next: 7038 |
|
Used by the routine at PlaceObject.
The car has reached a cup. Marks the cup as collected on the map, starts the cup sound and then handles picking up the cup.
|
||||
| CollectCup | 702A | LD HL,($5E3A) | Fetch the pointer to the map point after the cup (ObjectMapPointer). | |
| 702D | DEC HL | Move back to the sprite ID. | ||
| 702E | LD (HL),$60 | Write 60 (a collected cup) to the map point. | ||
| 7030 | LD A,$87 | Set the step counter to 87 which starts the cup sound. | ||
| 7032 | LD ($5E46),A | Write the step counter to SoundCounter. | ||
| 7035 | JP HandlerCup | Jump to HandlerCup. | ||
| Prev: 7024 | Up: Map | Next: 7038 |