Now have a full map and a mini map, but I think the mini map will stop rendering sometimes.

This commit is contained in:
Zed A. Shaw 2025-03-23 00:04:23 -04:00
parent 193d97eb48
commit 322797f787
15 changed files with 120 additions and 36 deletions

View file

@ -61,6 +61,7 @@ namespace gui {
void MainUI::draw_blood() {
auto player = $level.world->get_the<Player>();
auto player_combat = $level.world->get<Combat>(player.entity);
if(float(player_combat.hp) / float(player_combat.max_hp) < 0.5) {
$overlay_ui.show_sprite("middle", "blood_splatter");
} else {