Prev: E9CA Up: Map Next: EA0A
E9CB: Room Event : Rolling Rock.
Used by the routine at Update_Room00.
Input
Output
Update_RollRock E9CB LD A,(Room0_RockCount) Check and update countdown.
E9CE OR A
E9CF JR Z,Update_RollRock_0
E9D1 DEC A
E9D2 LD (Room0_RockCount),A
E9D5 RET Do nothing if not zero yet.
Update_RollRock_0 E9D6 LD B,$26 Number of times to move and draw rock.
Update_RollRock_1 E9D8 PUSH BC
E9D9 LD A,($F18A) Use flag as X position of rock.
E9DC LD E,A
E9DD LD D,$0E Y position of rock.
E9DF INC A Move position for next frame.
E9E0 LD ($F18A),A
E9E3 CALL RollRock_Draw Draw the rock as a furniture item.
E9E6 CALL Pause_Short
E9E9 POP BC
E9EA DJNZ Update_RollRock_1
E9EC LD A,$1C
E9EE LD (Wally_RoomNo),A
E9F1 XOR A
E9F2 LD ($F18A),A
E9F5 LD (Flag_BaddyInit),A
E9F8 INC A
E9F9 LD (DeathFlag),A
E9FC LD A,$C8
E9FE LD (Room0_RockCount),A
EA01 CALL ScreenClearEffect
EA04 CALL RoomDraw
EA07 JP Wally_Resurrect
Prev: E9CA Up: Map Next: EA0A