Prev: 70AD Up: Map Next: 70CE
70B2: Get Actor Position/ Direction
Used by the routines at ActorEraseMovedSprite and ActorEraseDestroyed.
ActorFindPosDir 70B2 CALL GetDefaultSprite Call GetDefaultSprite.
70B5 LD HL,($5E20) HL=Actor_Position_X.
70B8 LD A,L A=L.
70B9 NEG
70BB AND %00000111 Keep only bits 0-2.
70BD LD ($5E40),A Write A to 5E40.
70C0 CALL $70AD Call 70AD.
70C3 CALL ScreenAddress Call ScreenAddress.
70C6 LD A,(DE)
70C7 CP C
70C8 JR C,ActorFindPosDir_0
70CA LD A,C A=C.
ActorFindPosDir_0 70CB LD ($5E25),A Write A to CurrentSpriteHeight.
Continue on to NextSprite.
Prev: 70AD Up: Map Next: 70CE