![]() |
Routines |
| Prev: 52850 | Up: Map | Next: 52959 |
|
Used by the routine at Dispatch_Narrow_Entity_Approach.
Wave start animation countdown. Each frame advances the intro sprite animation, dispatches the entity list, and refreshes the colour bar. When Wave_Start_Delay reaches zero, draws the closing sprite and transfers to Main_Loop_Frame.
|
||||
| Animate_Wave_Start_Sequence | 52921 | CALL Animate_Wave_Start_Sprites | Advance the wave start sprite animation by one step. | |
| 52924 | LD HL,24832 | Point to the entity list at Entity_List_Base. | ||
| 52927 | CALL DispatchWordFromHL | Run each entity's per-frame update handler. | ||
| 52930 | LD A,(50483) | Decrement the wave start delay at Wave_Start_Delay and jump to Animate_Wave_Start_Sequence_Complete when the countdown reaches zero. | ||
| 52933 | DEC A | |||
| 52934 | LD (50483),A | |||
| 52937 | JP Z,Animate_Wave_Start_Sequence_Complete | |||
| 52940 | CALL UpdateAttributeBar | Refresh the colour bar. | ||
| 52943 | JP Animate_Wave_Start_Sequence | Loop back to Animate_Wave_Start_Sequence for the next animation frame. | ||
|
Countdown expired; draw the closing intro sprite and transfer to the main game loop.
|
||||
| Animate_Wave_Start_Sequence_Complete | 52946 | LD HL,50387 | Load the closing intro sprite. | |
| 52949 | EXX | Set the closing sprite draw colour. | ||
| 52950 | LD B,71 | |||
| 52952 | EXX | |||
| 52953 | CALL Draw_Entity_Sprite | Draw the closing intro sprite. | ||
| 52956 | JP Main_Loop_Frame | Jump to the main game loop frame at Main_Loop_Frame. | ||
| Prev: 52850 | Up: Map | Next: 52959 |