Prev: 29089 Up: Map Next: 29184
29150: Room drawing: Draw goblet picture or character portrait and corresponding picture frame
Draw goblet picture or character portrait and corresponding picture frame
Used by the routine at 27865.
Input
B y-coordinate of picture
C x-coordinate of picture
29150 CALL 29441 Read two bytes AFTER HL position into BC, advancing HL before both reads
29153 INC HL Read index of graphic to draw into D...
29154 LD D,(HL) ...
29155 INC HL Read attribute for this graphic into E...
29156 LD E,(HL) ...
29157 PUSH HL Store HL
29158 PUSH BC Store BC (x- and y-coordinates of top left)
29159 PUSH DE Store DE (index of graphic in graphic lookup table to draw in window is in D)
29160 CALL 36919 Draw window frame for character portraits (2nd floor) and goblet picture in Florin's room
29163 POP DE Restore DE
29164 POP BC Restore BC
29165 INC B Increase y-coordinate
29166 INC C Increase x-coordinate
29167 LD A,E Store attribute for graphic to be drawn at 23695...
29168 LD (23695),A ...
29171 LD A,64 Set current terrain interaction parameter to preserve-attribute...
29173 LD (23483),A ...
29176 LD A,D Draw graphic (e.g. the goblet in Florin's room's picture, or a character for their portrait on 2nd Floor)...
29177 CALL 29960 ...
29180 POP HL Restore HL
29181 JP 28060 Return to room drawing routine and process next data
Prev: 29089 Up: Map Next: 29184