Prev: 88E2 Up: Map Next: 8903
88F2: Starts a sound effect
Input
B Sound effect index: 1..9. This indexes the table at sfx_table.
C Priority. Lower priority effects will take precedence.
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