fix fps-specific behavior & unlimit fps
This commit is contained in:
parent
8c0d66e12d
commit
e65d77ad09
2 changed files with 4 additions and 3 deletions
1
conf.lua
1
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue