Compare commits
2 commits
8c0d66e12d
...
5cccd7c25c
Author | SHA1 | Date | |
---|---|---|---|
5cccd7c25c | |||
e65d77ad09 |
3 changed files with 5 additions and 4 deletions
1
conf.lua
1
conf.lua
|
@ -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
|
||||||
|
|
2
main.lua
2
main.lua
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue