This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package chrislo27.rhre.editor | ||
|
||
import com.badlogic.gdx.Gdx | ||
import com.badlogic.gdx.math.MathUtils | ||
|
||
data class ScrollValue(var game: Int, var pattern: Int, var patternLerp: Float = pattern.toFloat()) { | ||
|
||
fun update() { | ||
patternLerp = MathUtils.lerp(patternLerp, pattern.toFloat(), Gdx.graphics.deltaTime * 16f) | ||
} | ||
|
||
} |