LO
Size: a a a
ГК
AY
ГК
IS
IS
S
S
S
S
SK
SK
S
S
function drawBar(x, y, w, h, amount, max)
love.graphics.rectangle("line", x, y, w, h)
-- процент полоски умножаем на ширину
local hp_w = amount / max * w
love.graphics.rectangle("fill", x, y, hp_w, h)
end
SK
SK
SK
S