![]() |
Routines |
| Prev: 28708 | Up: Map | Next: 28728 |
|
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 | 28714 | LD HL,(24122) | Fetch the pointer to the map point after the cup (ObjectMapPointer). | |
| 28717 | DEC HL | Move back to the sprite ID. | ||
| 28718 | LD (HL),96 | Write 96 (a collected cup) to the map point. | ||
| 28720 | LD A,135 | Set the step counter to 135 which starts the cup sound. | ||
| 28722 | LD (24134),A | Write the step counter to SoundCounter. | ||
| 28725 | JP HandlerCup | Jump to HandlerCup. | ||
| Prev: 28708 | Up: Map | Next: 28728 |