+ wip earlylate component
This commit is contained in:
parent
0d895c9552
commit
de29796777
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
local desw = 1080;
|
||||||
|
local desh = 1920;
|
||||||
|
|
||||||
|
local transitionExistScale = 0;
|
||||||
|
|
||||||
|
local tickTransitions = function (deltaTime)
|
||||||
|
|
||||||
|
if transitionExistScale < 1 then
|
||||||
|
transitionExistScale = transitionExistScale + deltaTime / 2 -- transition should last for that time in seconds
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local render = function (deltaTime, comboState, combo, critLineCenterX, critLineCenterY)
|
||||||
|
tickTransitions(deltaTime)
|
||||||
|
|
||||||
|
if (transitionExistScale >= 1) then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
local trigger = function ()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
render=render
|
||||||
|
}
|
Loading…
Reference in New Issue