Compare commits

...

2 commits

Author SHA1 Message Date
5cccd7c25c dim "watermark" 2021-09-18 14:02:08 +03:00
e65d77ad09 fix fps-specific behavior & unlimit fps 2021-09-18 14:01:34 +03:00
3 changed files with 5 additions and 4 deletions

View file

@ -8,6 +8,7 @@ function love.conf(t)
t.window.title = 'Box of Eases' t.window.title = 'Box of Eases'
t.window.icon = 'logo.png' t.window.icon = 'logo.png'
t.window.msaa = 5 t.window.msaa = 5
t.window.vsync = false
t.modules.audio = false t.modules.audio = false
t.modules.data = false t.modules.data = false

View file

@ -55,7 +55,7 @@ function love.draw()
love.graphics.setColor(0.08, 0.08, 0.1, 1) love.graphics.setColor(0.08, 0.08, 0.1, 1)
love.graphics.rectangle('line', 0, 0, sw, sh) love.graphics.rectangle('line', 0, 0, sw, sh)
love.graphics.setColor(1, 1, 1, 1) love.graphics.setColor(0.2, 0.2, 0.3, 1)
love.graphics.print('Box of Eases by oatmealine', outerpadding, sh - fontHeight - outerpadding) love.graphics.print('Box of Eases by oatmealine', outerpadding, sh - fontHeight - outerpadding)
slider.render() slider.render()

View file

@ -108,11 +108,11 @@ end
function self.update(dt) function self.update(dt)
for i, v in ipairs(sliders) do 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)) v.oldvalue = mix(v.oldvalue, v.value, math.min(dt * 20, 1))
if v.spintimer > 2 then if v.spintimer > 1 then
v.spintimer = v.spintimer - 2 v.spintimer = v.spintimer - 1
v.spin = v.spin + 4 v.spin = v.spin + 4
end end