HitFX, Early/Late display with ms #35

Merged
hersi merged 16 commits from domdoc-develop into master 2022-05-27 11:17:12 +02:00
1 changed files with 13 additions and 10 deletions
Showing only changes of commit 3b1860db70 - Show all commits

View File

@ -103,7 +103,7 @@ local function setUpTransform(critCenterX, critCenterY, critRotation, xScalar)
end
function HitFX.renderLasers(deltaTime, critCenterX, critCenterY, critRotation, cursors)
local baseHitSize = 325 * 1.25;
local hitSize = 406
-- Lasers
for laser = 1, 2 do
@ -133,28 +133,28 @@ function HitFX.renderLasers(deltaTime, critCenterX, critCenterY, critRotation, c
laserState.Dome:render(deltaTime, {
centered = true,
width = baseHitSize,
height = baseHitSize,
width = hitSize,
height = hitSize,
color = laserColor,
x = x,
})
laserState.Crit:render(deltaTime, {
centered = true,
width = baseHitSize,
height = baseHitSize,
width = hitSize,
height = hitSize,
x = x,
})
laserState.EndInner:render(deltaTime, {
centered = true,
width = baseHitSize,
height = baseHitSize,
width = hitSize,
height = hitSize,
x = x,
})
laserState.EndOuter:render(deltaTime, {
centered = true,
width = baseHitSize,
height = baseHitSize,
width = hitSize,
height = hitSize,
color = laserColor,
x = x,
})
@ -162,14 +162,17 @@ function HitFX.renderLasers(deltaTime, critCenterX, critCenterY, critRotation, c
end
function HitFX.renderButtons(deltaTime, critCenterX, critCenterY, critRotation)
local baseHitSize = 325;
--local baseHitSize = 325;
local hitSize = 406
-- BT + FX
for i = 1, 6 do
--[[
local hitSize = baseHitSize;
if (i > 4) then
hitSize = hitSize * 1.5;
end
]]
local laneWidth = (track.GetCurrentLaneXPos(2) - track.GetCurrentLaneXPos(1)) * (i <= 4 and 1 or 2);
local lanePosition = track.GetCurrentLaneXPos(i) + laneWidth / 2