Prev: CB06 Up: Map Next: CB5A
CB0F: Draw the panel's scroll-work and icons at the foot of the screen
Used by the routine at OBJECT_DONE.
Draws the twelve pieces of PANEL_DATA into the buffer through the spare record at PANEL_RECORD: on each side a slanting run of five of graphic 9, stepping 16 pixels in and 8 down, a column of six of graphic 10 up the edge, and graphics 7 and 8 at the ends, the right side the left mirrored; then three icons -- the robot (graphic 12) beside the lives, the frame round the light years (graphic 84, in two mirrored halves), and graphic 131 beside the count of chambers activated, which PRINT_CHAMBERS prints at (32, 31). That is the only place graphic 131 is drawn, which is why it has a sprite but no update routine. Where each entry lands was measured: the routine run in the simulator, and run again with each entry's graphic made 0, the difference being that entry's pixels.
Called from the main loop (OBJECT_DONE) on the first turn in a new room, before COLOUR_PANEL colours the panel and prints its numbers and SHOW_BUFFER shows the whole buffer. Knight Lore's display_panel draws the same kind of scroll-work from six entries; the icons are Alien 8's.
DISPLAY_PANEL CB0F LD IX,PANEL_RECORD IX = the spare record; the first entry
CB13 LD HL,PANEL_DATA
CB16 CALL TRANSFER_SPRITE
CB19 LD DE,$F810 The left run: five, each 16 pixels right and 8 down
CB1C LD B,$05
CB1E CALL MULTIPLE_PRINT_SPRITE
CB21 CALL TRANSFER_SPRITE Six up the left edge, 8 pixels apart
CB24 LD DE,$0800
CB27 LD B,$06
CB29 CALL MULTIPLE_PRINT_SPRITE
CB2C CALL TRANSFER_SPRITE_AND_PRINT Graphic 7 above the edge, and graphic 8 at the foot of the run
CB2F CALL TRANSFER_SPRITE_AND_PRINT
CB32 CALL TRANSFER_SPRITE The right run: five, each 16 pixels left and 8 down
CB35 LD DE,$F8F0
CB38 LD B,$05
CB3A CALL MULTIPLE_PRINT_SPRITE
CB3D CALL TRANSFER_SPRITE Six up the right edge
CB40 LD DE,$0800
CB43 LD B,$06
CB45 CALL MULTIPLE_PRINT_SPRITE
CB48 CALL TRANSFER_SPRITE_AND_PRINT Graphics 7 and 8 on the right, mirrored
CB4B CALL TRANSFER_SPRITE_AND_PRINT
CB4E CALL TRANSFER_SPRITE_AND_PRINT The robot beside the lives
CB51 CALL TRANSFER_SPRITE_AND_PRINT The two halves of the frame round the light years
CB54 CALL TRANSFER_SPRITE_AND_PRINT
CB57 JP TRANSFER_SPRITE_AND_PRINT The icon beside the chambers count
Prev: CB06 Up: Map Next: CB5A