Prev: 29110 Up: Map Next: 29174
29142: Paint room layout data entry's terrain interaction parameters, applying vertical mirror (room drawing)
Used by the routine at 28070.
See also analogous routine at 28906 (RLE attribute data painting)
Input
HL Points to entry in lookup table for RLE terrain interaction data (room layout graphics) (at 51997)
Output
B y-coordinate of graphic's top
C x-coordinate of graphic's right
29142 PUSH HL Store HL (current entry in lookup table for RLE terrain interaction data)
29143 LD HL,23493 Modify instruction at 29220 to load x-coordinate of graphic's left edge into A...
29146 LD (29221),HL ...i.e. set end x-coordinate for painting right-to-left
29149 LD HL,29241 Modify instruction at 29224 to jump to 29241...
29152 LD (29225),HL ...i.e. advance HL down one character row in terrain interaction data table at 24064
29155 LD A,43 Modify instruction at 29227 with opcode 43 (DEC HL)...
29157 LD (29227),A ...
29160 POP HL Restore HL (current entry in lookup table for RLE terrain interaction data)
29161 CALL 29036 Store coordinates of area to be coloured and point IX at RLE terrain interaction data
29164 LD A,(23495) Load C with x-coordinate of graphic's right edge...
29167 LD C,A ...
29168 LD A,(23494) Load B with y-coordinate of graphic's top edge...
29171 LD B,A ...
29172 JR 29200 Jump to terrain interaction data painting routine
Prev: 29110 Up: Map Next: 29174