Now have a full map and a mini map, but I think the mini map will stop rendering sometimes.
This commit is contained in:
parent
193d97eb48
commit
322797f787
15 changed files with 120 additions and 36 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue