TextButtonList working kinematic background

Former-commit-id: 8976d3b3d1e40731adf13430ad747351a6401b24
This commit is contained in:
Song Minjae
2017-03-15 01:06:13 +09:00
parent ff817c25e6
commit 3d91023011
20 changed files with 127 additions and 51 deletions

View File

@@ -0,0 +1,11 @@
package net.torvald.terrarum.ui
import net.torvald.terrarum.gameactors.sqr
/**
* Created by SKYHi14 on 2017-03-14.
*/
object UIUtils {
fun moveQuick(start: Double, end: Double, timer: Double, duration: Double) =
(start - end) * ((timer / duration) - 1).sqr() + end
}