diff --git a/assets/cubyz/ui/hud/dead_heart.png b/assets/cubyz/ui/hud/dead_heart.png index 1d1572e8c..2f25dd5a2 100644 Binary files a/assets/cubyz/ui/hud/dead_heart.png and b/assets/cubyz/ui/hud/dead_heart.png differ diff --git a/assets/cubyz/ui/hud/half_heart.png b/assets/cubyz/ui/hud/half_heart.png index 2ad5ff32a..2a6842e63 100644 Binary files a/assets/cubyz/ui/hud/half_heart.png and b/assets/cubyz/ui/hud/half_heart.png differ diff --git a/assets/cubyz/ui/hud/heart.png b/assets/cubyz/ui/hud/heart.png index 5b737b64e..d50d7ead3 100644 Binary files a/assets/cubyz/ui/hud/heart.png and b/assets/cubyz/ui/hud/heart.png differ diff --git a/src/gui/windows/healthbar.zig b/src/gui/windows/healthbar.zig index 97d2f97f4..d11eedb72 100644 --- a/src/gui/windows/healthbar.zig +++ b/src/gui/windows/healthbar.zig @@ -13,12 +13,12 @@ const GuiComponent = gui.GuiComponent; const hotbar = @import("hotbar.zig"); pub var window = GuiWindow { - .scale = 0.75, + .scale = 0.5, .relativePosition = .{ .{ .attachedToWindow = .{.reference = &hotbar.window, .selfAttachmentPoint = .upper, .otherAttachmentPoint = .upper} }, .{ .attachedToWindow = .{.reference = &hotbar.window, .selfAttachmentPoint = .upper, .otherAttachmentPoint = .lower} }, }, - .contentSize = Vec2f{128, 16}, + .contentSize = Vec2f{160, 20}, .isHud = true, .showTitleBar = false, .hasBackground = false, @@ -49,7 +49,7 @@ pub fn render() void { while(health < main.game.Player.maxHealth) : (health += 1) { if(x >= window.contentSize[0]) { x = 0; - y += 16; + y += 20; } if(health + 1 <= main.game.Player.health) { heartTexture.bindTo(0); @@ -58,12 +58,12 @@ pub fn render() void { } else { deadHeartTexture.bindTo(0); } - draw.boundImage(Vec2f{x, window.contentSize[1] - y - 16}, .{16, 16}); - x += 16; + draw.boundImage(Vec2f{x, window.contentSize[1] - y - 20}, .{20, 20}); + x += 20; } - y += 16; + y += 20; if(y != window.contentSize[1]) { window.contentSize[1] = y; gui.updateWindowPositions(); } -} \ No newline at end of file +}