change hitpoint hud

This commit is contained in:
StrangeD0s
2023-02-18 14:22:57 +01:00
parent 047877bf0d
commit e4487b17dc
+3 -3
View File
@@ -235,10 +235,10 @@ function renderHud(ctx, spriteAtlas, dt, frame) {
}
for (n = 0, max = hitpoints; n < max; n++)
ctx.fillRect(
t2p(1 + n) * hudScaling,
t2p(1 + n / 3) * hudScaling,
t2p(3) * hudScaling,
(TILE / 2) * hudScaling,
(TILE / 2) * hudScaling
4 * hudScaling,
8 * hudScaling
)
// ! Der Atlas funktioniert so nicht weil die Tiles nicht quadratisch sind.
// drawSprite(t, spriteAtlas, dt, frame)