![]() |
Routines |
| Prev: 52959 | Up: Map | Next: 53074 |
|
Used by the routine at Main_Game_Loop.
Per-frame handler for approaching narrow entities. Decrements Animation_Frame_Counter_Two and jumps to Animate_Wave_Start_Sequence when zero; otherwise resets the animation scroll position, dispatches the entity list, decrements Animation_Frame_Counter_One, and returns to the main poll loop. Called from Main_Game_Loop.
|
||||
| Dispatch_Narrow_Entity_Approach | 53043 | LD A,(50486) | Count down the approach animation; start the wave sequence when complete. | |
| 53046 | DEC A | |||
| 53047 | JR Z,Animate_Wave_Start_Sequence | |||
| 53049 | LD A,(50484) | Reset the approach scroll position for the current frame. | ||
| 53052 | LD H,A | |||
| 53053 | LD L,0 | |||
| 53055 | LD (50485),HL | |||
| 53058 | LD HL,24832 | Run each entity's per-frame update handler. | ||
| 53061 | CALL DispatchWordFromHL | |||
| 53064 | CALL UpdateAttributeBar | Refresh the colour bar. | ||
| 53067 | LD HL,50484 | Decrement the approach frame counter and return to the main poll. | ||
| 53070 | DEC (HL) | |||
| 53071 | JP Main_Loop_Poll | |||
| Prev: 52959 | Up: Map | Next: 53074 |