diff --git a/conf.lua b/conf.lua index 0044594..f53c655 100644 --- a/conf.lua +++ b/conf.lua @@ -8,6 +8,7 @@ function love.conf(t) t.window.title = 'Box of Eases' t.window.icon = 'logo.png' t.window.msaa = 5 + t.window.vsync = false t.modules.audio = false t.modules.data = false diff --git a/slider.lua b/slider.lua index d2bcb2a..cd9828d 100644 --- a/slider.lua +++ b/slider.lua @@ -108,11 +108,11 @@ end function self.update(dt) for i, v in ipairs(sliders) do - v.spintimer = mix(v.spintimer + math.abs(normalize(v.value, v.min, v.max) - normalize(v.oldvalue, v.min, v.max)), 0, math.min(dt * 8)) + v.spintimer = mix(v.spintimer + math.abs(normalize(v.value, v.min, v.max) - normalize(v.oldvalue, v.min, v.max)) * dt * 40, 0, math.min(dt * 8, 1)) v.oldvalue = mix(v.oldvalue, v.value, math.min(dt * 20, 1)) - if v.spintimer > 2 then - v.spintimer = v.spintimer - 2 + if v.spintimer > 1 then + v.spintimer = v.spintimer - 1 v.spin = v.spin + 4 end