Compare commits

..

No commits in common. "5cccd7c25c7c983a4c11ba7fa7b681434c40b990" and "8c0d66e12ddb5a6adafb48e606de19af80c587ee" have entirely different histories.

3 changed files with 4 additions and 5 deletions

View file

@ -8,7 +8,6 @@ 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

View file

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

View file

@ -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)) * dt * 40, 0, math.min(dt * 8, 1))
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.oldvalue = mix(v.oldvalue, v.value, math.min(dt * 20, 1))
if v.spintimer > 1 then
v.spintimer = v.spintimer - 1
if v.spintimer > 2 then
v.spintimer = v.spintimer - 2
v.spin = v.spin + 4
end