mirror of https://github.com/nmlgc/ReC98.git
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#include "pc98.h"
|
|
|
|
// Coordinates
|
|
// -----------
|
|
|
|
static const tram_x_t HUD_LEFT = 56;
|
|
static const tram_cell_amount_t HUD_TRAM_W = 16;
|
|
|
|
static const tram_y_t HUD_HISCORE_Y = 4;
|
|
static const tram_y_t HUD_SCORE_Y = 6;
|
|
static const tram_y_t HUD_BOMBS_Y = 15;
|
|
static const tram_y_t HUD_LIVES_Y = 17;
|
|
static const tram_y_t HUD_POWER_Y = 20;
|
|
static const tram_y_t HUD_RANK_Y = 22;
|
|
|
|
static const tram_cell_amount_t HUD_LABEL_PADDING = 1;
|
|
static const tram_cell_amount_t HUD_LABEL_W = (2 * GAIJI_TRAM_W);
|
|
static const tram_cell_amount_t HUD_LABEL_PADDED_W = (
|
|
HUD_LABEL_PADDING + HUD_LABEL_W + HUD_LABEL_PADDING
|
|
);
|
|
|
|
static const tram_x_t HUD_LABELED_LEFT = (HUD_LEFT + HUD_LABEL_PADDED_W);
|
|
static const tram_cell_amount_t HUD_LABELED_W = (
|
|
HUD_TRAM_W - HUD_LABEL_PADDED_W
|
|
);
|
|
// -----------
|
|
|
|
// Yup, this also commits changes to [power] to the [shot_level], which
|
|
// absolutely doesn't belong here.
|
|
void near player_shot_level_update_and_hud_power_put(void);
|
|
|
|
void near hud_lives_put(void);
|
|
void near hud_bombs_put(void);
|
|
|
|
// Renders the entire HUD, reflecting all current values.
|
|
void near hud_put(void);
|