Prev: 45085 Up: Map Next: 45108
45086: Reset Trap Door Animation State
Used by the routines at ScriptRoutine_AnimateTrapDoorBerk and Update_Drutt.
Reset Trap Door Animation State used when opening or closing the trap door.
Reset_Trap_Door_Animation_State 45086 LD A,(IX+6) Load A with the current entity's y-extent.
45089 LD (45085),A Set Drutt's saved animation state (Drutt_SavedAnimationState).
45092 XOR A Clear the trap door flags.
45093 LD (29370),A Set the trap door flags (TrapDoorFlags).
45096 INC A Advance the current entity's y-extent by one.
45097 LD (29371),A Set Drutt's animation counter (DruttAnimationCounter).
45100 LD BC,43047 Load BC with the lever closed, facing left (GraphicLayout_LeverClosedLeft).
45103 LD (37295),BC Store BC in the lever layout slot at Pointer_AnimatingSceneryLayout.
45107 RET Return.
Prev: 45085 Up: Map Next: 45108