2020-09-13 10:47:55 +00:00
|
|
|
#include "th02/main/hud/hud.h"
|
|
|
|
|
|
|
|
// Low-level
|
|
|
|
// ---------
|
|
|
|
// Renders the "Enemy!!" caption and the HP bar, showing the given [bar_value]
|
|
|
|
// between 0 and BAR_MAX.
|
|
|
|
void pascal hud_hp_put(int bar_value);
|
2021-07-09 13:39:54 +00:00
|
|
|
|
|
|
|
#if (GAME == 5)
|
|
|
|
// Prints [points] using the bold gaiji font, right-aligned at
|
|
|
|
// ([left+8], [y]),
|
|
|
|
// in white, using up to 7 digits (8 if the "continue" digit is included).
|
|
|
|
// Larger numbers will overflow the most significant digit into the A-Z
|
|
|
|
// range.
|
|
|
|
void pascal hud_points_put(
|
|
|
|
utram_x_t left, utram_y_t y, unsigned long points
|
|
|
|
);
|
|
|
|
#endif
|
2020-09-13 10:47:55 +00:00
|
|
|
// ---------
|
|
|
|
|
|
|
|
// High-level
|
|
|
|
// ----------
|
|
|
|
// Renders the HP bar at the fraction of ([hp_cur] / [hp_max]), or instead
|
|
|
|
// takes asingle fill step if the previous bar value was lower.
|
|
|
|
void pascal hud_hp_update_and_render(int hp_cur, int hp_max);
|
2021-07-22 18:48:47 +00:00
|
|
|
|
|
|
|
// Displays [stage_graze] in the graze row.
|
|
|
|
void pascal hud_graze_put();
|
2020-09-13 10:47:55 +00:00
|
|
|
// ----------
|