Prev: BEFF Up: Map Next: BF56
BF08: Knock Wally down to the floor.
Used by the routines at Wally_CheckForDeath and Action08_BoxingGloveSafe.
Input
Output
Wally_KnockedDown BF08 LD A,(Wally_RoomNo) Workout the position of the bottom floor in room.
BF0B LD E,A
BF0C LD D,$00
BF0E LD HL,Wally_ResurectY
BF11 ADD HL,DE
BF12 LD C,(HL)
Wally_KnockedDown_0 BF13 PUSH BC
BF14 CALL Room_EventCaller
BF17 CALL Pause_Short
BF1A CALL Wally_Erase
BF1D XOR A Reset animation and make wally fall until he hits the deck.
BF1E LD ($F188),A
BF21 LD (Wally_HeadTurned),A
BF24 LD HL,(Wally_X)
BF27 INC H
BF28 INC H
BF29 INC H
BF2A LD A,H
BF2B POP BC
BF2C CP C
BF2D JR NC,Wally_KnockedDown_1
BF2F LD (Wally_X),HL
BF32 CALL Wally_Draw
BF35 JR Wally_KnockedDown_0
Wally_KnockedDown_1 BF37 LD H,C when he does hit the deck, animate him sitting down.
BF38 LD A,C
BF39 ADD A,$10
BF3B LD D,A
BF3C LD (Wally_X),HL
BF3F LD A,$9B
BF41 LD (Wally_Frame),A
BF44 CALL Wally_Draw
BF47 CALL Room_EventSixTimes
BF4A CALL Wally_Erase
BF4D LD A,$9D
BF4F LD (Wally_Frame),A
BF52 CALL Wally_Draw
BF55 RET
Prev: BEFF Up: Map Next: BF56