Prev: CBAD Up: Map Next: CBD1
CBAE: Draw the fuel gauge's outline
Used by the routine at draw_panel.
The gauge is a tube at x $F0-$FF: a cap at the foot (line $BF, gauge_top_cap) and one at the top (line $43, gauge_bottom_cap), each 2 bytes by 4 rows, and between them 120 rows of two single-pixel walls ($10 in each byte). The fuel inside is drawn by update_fuel_gauge.
draw_fuel_gauge CBAE LD HL,$BFF0 The two caps.
CBB1 LD DE,gauge_top_cap
CBB4 CALL draw_bitmap
CBB7 LD HL,$43F0
CBBA LD DE,gauge_bottom_cap
CBBD CALL draw_bitmap
CBC0 LD HL,$53FE The walls, upwards.
CBC3 LD B,$78
draw_fuel_gauge_0 CBC5 LD (HL),$10
CBC7 INC HL
CBC8 LD (HL),$10
CBCA DEC HL
CBCB CALL line_up_hl
CBCE DJNZ draw_fuel_gauge_0
CBD0 RET
Prev: CBAD Up: Map Next: CBD1