Bring back a simple blood splatter texture.

master
Zed A. Shaw 1 week ago
parent b832bbd78a
commit e18aeaf05c
  1. BIN
      assets/blood_splatter-256.png
  2. 5
      main_ui.cpp
  3. 1
      main_ui.hpp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 22 KiB

@ -42,7 +42,6 @@ namespace gui {
}
void MainUI::render() {
if($show_level) {
auto time = $clock.getElapsedTime();
auto st = textures::get("down_the_well");
@ -60,6 +59,10 @@ namespace gui {
$overlay_ui.render($window);
}
void MainUI::health_low() {
$overlay_ui.show_sprite("middle", "blood_splatter");
}
bool MainUI::play_rotate() {
bool done = $camera.play_rotate($rayview);
$needs_render = !done;

@ -45,6 +45,7 @@ namespace gui {
void dirty();
void show_level();
void health_low();
void dead_entity(DinkyECS::Entity entity);
};
}

Loading…
Cancel
Save