Prev: E96B Up: Map Next: E9CA
E9A3: Draw : Rolling Rock.
Used by the routine at Update_RollRock.
Input
DE Position (char_y, char_x)
Output
RollRock_Draw E9A3 LD C,$08 Height of rock in characters.
E9A5 LD HL,RollRock_Tiles Set draw to use the tiles for the rolling rock.
E9A8 LD (TileStartPtr),HL
E9AB LD HL,RollRock_Furniture The furniture string for the rock.
RollRock_Draw_0 E9AE LD B,$07 Width of rock in characters.
RollRock_Draw_1 E9B0 PUSH BC
E9B1 LD A,E
E9B2 CP $20
E9B4 JR NC,RollRock_Draw_2
E9B6 LD C,$05 Colour rock cyan.
E9B8 LD A,(HL) Get next tile and draw as bitmap.
E9B9 CALL TileDraw
RollRock_Draw_2 E9BC INC D Next tile position down.
E9BD INC HL
E9BE POP BC
E9BF DJNZ RollRock_Draw_1
E9C1 DEC E Next column along, top line.
E9C2 LD A,D
E9C3 SUB $07
E9C5 LD D,A
E9C6 DEC C
E9C7 JR NZ,RollRock_Draw_0
E9C9 RET
Prev: E96B Up: Map Next: E9CA