From cb654a69a1f9dd1236c76ecbe619d79154a52853 Mon Sep 17 00:00:00 2001 From: entar Date: Mon, 1 Sep 2025 14:32:36 +0700 Subject: [PATCH] Made camera look actually more like v-slice --- states/playstate.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/states/playstate.lua b/states/playstate.lua index 98b6fc6..7f14b87 100644 --- a/states/playstate.lua +++ b/states/playstate.lua @@ -707,15 +707,18 @@ local function state(songName, songDifficulty, show) if event.vars and type(event.vars) == "table" then if event.vars.ease and event.vars.ease ~= "CLASSIC" then - easetime = event.vars.duration or 1.5 + easetime = event.vars.duration and event.vars.duration / 16 or 1.5 end end cameraTween = tween.new(easetime, render.cameraPosition, { x = cameraPosition.x, y = cameraPosition.y }, ease) elseif event.name == "zoomcamera" then - zoomTween = tween.new(event.vars.duration or 32, sharedVars, { defaultZoom = event.vars.zoom }, - tween.easing.outExpo) + local duration = event.vars.ease == "CLASSIC" and 1.5 or event.vars.duration and event.vars.duration / 16 or 2 + local ease = tween.easing.outQuad + + zoomTween = tween.new(duration, sharedVars, { defaultZoom = event.vars.zoom }, + ease) elseif event.name == "playanimation" or event.name == "play animation" then local chars = { dad = "dad",