Prev: CEDF Up: Map Next: CF52
CF33: Dispatch Narrow Entity Approach
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 CF33 LD A,($C536) Count down the approach animation; start the wave sequence when complete.
CF36 DEC A
CF37 JR Z,Animate_Wave_Start_Sequence
CF39 LD A,($C534) Reset the approach scroll position for the current frame.
CF3C LD H,A
CF3D LD L,$00
CF3F LD ($C535),HL
CF42 LD HL,$6100 Run each entity's per-frame update handler.
CF45 CALL DispatchWordFromHL
CF48 CALL UpdateAttributeBar Refresh the colour bar.
CF4B LD HL,$C534 Decrement the approach frame counter and return to the main poll.
CF4E DEC (HL)
CF4F JP Main_Loop_Poll
Prev: CEDF Up: Map Next: CF52