Prev: 61163 Up: Map Next: 61240
61194: Animate: Exit Stage Right
Set the co-ordinates for where to draw.
Animate_ExitStageRight 61194 LD BC,(53837) BC=*Active_MonsterXPosition/Active_MonsterYPosition.
61198 LD A,(53833) A=*Active_MonsterIdleCountdown.
61201 AND %00000001 Keep only bit 0.
61203 XOR %00000001 Flip bit 0.
61205 LD (53833),A Write A to *Active_MonsterIdleCountdown.
61208 JR NZ,Animate_ExitStageRight_0 Jump to Animate_ExitStageRight_0 if A is not zero.
61210 LD A,55 A=sprite ID 55.
ID Sprite
55 sprite-55-left
61212 CALL PrintSprite Call PrintSprite.
61215 RET Return.
Animate_ExitStageRight_0 61216 LD A,(53837) Increment *Active_MonsterXPosition by one.
61219 INC A
61220 LD (53837),A
61223 CP 40 Jump to Animate_ExitStageRight_1 if A is equal to 40.
61225 JR Z,Animate_ExitStageRight_1
61227 INC C Increment C by one.
61228 LD A,53 A=sprite ID 53.
ID Sprite
53 sprite-53-left
61230 CALL PrintSprite Call PrintSprite.
61233 RET Return.
Animate_ExitStageRight_1 61234 LD A,255 Write 255 to *JumpTable_Pointer.
61236 LD (53828),A
61239 RET Return.
Prev: 61163 Up: Map Next: 61240