| Chase H.Q. | Routines |
| Prev: 88E2 | Up: Map | Next: 8903 |
|
The request is accepted when no effect is currently playing (priority zero) or when the incoming priority is at least as high as the current one. A lower number means higher precedence, so 1 outranks everything.
Used by the routines at main_loop, drive_sfx, check_time_up, check_scenery_collisions, perp_behaviour, hazard_handler, hazard_hit, move_hero_car and animate_hero_car.
|
||||||||||
| start_sfx | 88F2 | LD A,($A238) | If current effect's priority is zero then assign | |||||||
| 88F5 | AND A | |||||||||
| 88F6 | JR Z,ss_assign | |||||||||
| 88F8 | CP C | Return if current effect's priority is lower than request | ||||||||
| 88F9 | RET C | |||||||||
| ss_assign | 88FA | LD A,B | Store sfx_index | |||||||
| 88FB | LD ($A237),A | |||||||||
| 88FE | LD A,C | Store sfx_priority | ||||||||
| 88FF | LD ($A238),A | |||||||||
| 8902 | RET | Return | ||||||||
| Prev: 88E2 | Up: Map | Next: 8903 |