Prev: 9F13 Up: Map Next: A017
9FE6: Update the backgrounds of actors / hero.
Used by the routine at _79b7.
Input
Output
DF_UpdateBg 9FE6 LD A,(Camera_Compass) Test for South / West facing.
9FE9 BIT 1,A
9FEB CALL NZ,Actor_UpdateBg Update actors backgrounds first if so.
9FEE LD HL,ScratchPad Update hero's background.
9FF1 LD A,(Hero_FrameCount)
9FF4 AND A
9FF5 JP Z,DF_UpdateBg_1
9FF8 LD DE,_60db
9FFB LD A,$38
DF_UpdateBg_0 9FFD LDI
9FFF LDI
A001 LDI
A003 LDI
A005 LD BC,$001E
A008 EX DE,HL
A009 ADD HL,BC
A00A EX DE,HL
A00B DEC A
A00C JR NZ,DF_UpdateBg_0
DF_UpdateBg_1 A00E LD A,(Camera_Compass) Test for North / East.
A011 BIT 1,A
A013 RET NZ
A014 JP Actor_UpdateBg Update backgrounds if so.
Prev: 9F13 Up: Map Next: A017