ExperimentalGear/scripts/gameplay/crit_line.lua

37 lines
733 B
Lua

local baseImage = gfx.CreateSkinImage("gameplay/crit_line/base.png", 0)
local textImage = gfx.CreateSkinImage("gameplay/crit_line/text.png", 0)
local CRITBAR_W = 1496
local CRITBAR_H = 348
local setUpTransforms = function (x,y,rotation)
gfx.Translate(x, y)
gfx.Rotate(rotation)
end
local renderBase = function (deltaTime, centerX, centerY, rotation)
setUpTransforms(centerX, centerY, rotation)
gfx.BeginPath();
gfx.ImageRect(
-CRITBAR_W/2,
-CRITBAR_H/2,
CRITBAR_W,
CRITBAR_H,
baseImage,
1,
0
);
gfx.ResetTransform()
end
local renderOverlay = function (deltaTime)
end
return {
renderBase=renderBase,
renderOverlay=renderOverlay
}