From de297967775a373cd1ebfca5e17cee834d01a451 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Sun, 5 Sep 2021 16:07:17 +0200 Subject: [PATCH] + wip earlylate component --- scripts/gameplay/earlylate.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 scripts/gameplay/earlylate.lua diff --git a/scripts/gameplay/earlylate.lua b/scripts/gameplay/earlylate.lua new file mode 100644 index 0000000..ce6aadf --- /dev/null +++ b/scripts/gameplay/earlylate.lua @@ -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 +} \ No newline at end of file