Prev: B01D Up: Map Next: B034
B01E: 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 B01E LD A,(IX+$06) Load A with the current entity's y-extent.
B021 LD ($B01D),A Set Drutt's saved animation state (Drutt_SavedAnimationState).
B024 XOR A Clear the trap door flags.
B025 LD ($72BA),A Set the trap door flags (TrapDoorFlags).
B028 INC A Advance the current entity's y-extent by one.
B029 LD ($72BB),A Set Drutt's animation counter (DruttAnimationCounter).
B02C LD BC,$A827 Load BC with the lever closed, facing left (GraphicLayout_LeverClosedLeft).
B02F LD ($91AF),BC Store BC in the lever layout slot at Pointer_AnimatingSceneryLayout.
B033 RET Return.
Prev: B01D Up: Map Next: B034