Made camera look actually more like v-slice

This commit is contained in:
entar 2025-09-01 14:32:36 +07:00
parent b53356f55f
commit cb654a69a1

View File

@ -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",