![]() |
Routines |
| Prev: CA31 | Up: Map | Next: CAA7 |
What it draws on a clear screen, run in the simulator after the game's start-up (twice the size).
Called by game before a game and by play at the start of each life. Player 1's score in yellow and player 2's in red, the colour patch behind the panel's top, both players' lives, the eight text records from score_labels, a bitmap under each score, the frame (draw_frame), the fuel gauge (the entry at the end of flash_fuel_gauge, draw_fuel_gauge) and the word 'FUEL' beside it.
|
||||
| draw_panel | CA3F | LD A,$46 | Score colours: player 1 yellow, player 2 red. | |
| CA41 | LD ($C9EE),A | |||
| CA44 | LD A,$42 | |||
| CA46 | LD ($C9FE),A | |||
| CA49 | LD HL,$0F30 | The white patch behind the top of the panel. | ||
| CA4C | LD DE,panel_patch | |||
| CA4F | CALL fill_attributes | |||
| CA52 | CALL print_lives | Player 1's lives; player 2's digit is all its lives (+6 of other_player_record, plus $1A). | ||
| CA55 | LD A,($F656) | |||
| CA58 | ADD A,$1A | |||
| CA5A | LD (p2_lives_digit),A | |||
| CA5D | LD DE,score_labels | The eight text records. | ||
| CA60 | LD B,$08 | |||
| CA62 | CALL print_strings | |||
| CA65 | LD HL,$0B30 | The bitmap under each score. | ||
| CA68 | LD DE,score_bitmap | |||
| CA6B | CALL draw_bitmap | |||
| CA6E | LD HL,$0BB0 | |||
| CA71 | LD DE,score_bitmap | |||
| CA74 | CALL draw_bitmap | |||
| CA77 | LD IX,frame_description | The frame: its corners at frame_corners, its ornaments' places at ornament_places. | ||
| CA7B | LD DE,frame_corners | |||
| CA7E | LD (IX+$09),E | |||
| CA81 | LD (IX+$0A),D | |||
| CA84 | LD DE,ornament_places | |||
| CA87 | LD (IX+$0C),E | |||
| CA8A | LD (IX+$0D),D | |||
| CA8D | CALL draw_frame | |||
| CA90 | CALL flash_fuel_gauge_0 | The gauge: its colour and its outline. | ||
| CA93 | CALL draw_fuel_gauge | |||
| CA96 | LD HL,$37F0 | The cyan patch behind the label. | ||
| CA99 | PUSH HL | |||
| CA9A | LD DE,fuel_label_patch | |||
| CA9D | CALL fill_attributes | |||
| CAA0 | POP HL | The label, 2 bytes by 32 rows, at x $F0 (fuel_label). | ||
| CAA1 | LD DE,fuel_label | |||
| CAA4 | JP draw_bitmap | |||
| Prev: CA31 | Up: Map | Next: CAA7 |