mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Slightly faster animation
This commit is contained in:
@ -60,7 +60,7 @@ object BattleTableHelpers {
|
|||||||
Actions.sequence(
|
Actions.sequence(
|
||||||
object : RelativeTemporalAction(){
|
object : RelativeTemporalAction(){
|
||||||
init {
|
init {
|
||||||
duration = 0.5f
|
duration = 0.3f
|
||||||
interpolation = Interpolation.sine
|
interpolation = Interpolation.sine
|
||||||
}
|
}
|
||||||
override fun updateRelative(percentDelta: Float) {
|
override fun updateRelative(percentDelta: Float) {
|
||||||
@ -72,7 +72,7 @@ object BattleTableHelpers {
|
|||||||
Actions.parallel( // While the unit is moving back to its normal position, we flash the damages on both units
|
Actions.parallel( // While the unit is moving back to its normal position, we flash the damages on both units
|
||||||
object : RelativeTemporalAction(){
|
object : RelativeTemporalAction(){
|
||||||
init {
|
init {
|
||||||
duration = 0.5f
|
duration = 0.3f
|
||||||
interpolation = Interpolation.sine
|
interpolation = Interpolation.sine
|
||||||
}
|
}
|
||||||
override fun updateRelative(percentDelta: Float) {
|
override fun updateRelative(percentDelta: Float) {
|
||||||
@ -82,10 +82,10 @@ object BattleTableHelpers {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Actions.sequence(
|
Actions.sequence(
|
||||||
object : FloatAction(0f, 1f, 0.3f, Interpolation.sine) {
|
object : FloatAction(0f, 1f, 0.2f, Interpolation.sine) {
|
||||||
override fun update(percent: Float) = updateRedPercent(percent)
|
override fun update(percent: Float) = updateRedPercent(percent)
|
||||||
},
|
},
|
||||||
object : FloatAction(0f, 1f, 0.3f, Interpolation.sine) {
|
object : FloatAction(0f, 1f, 0.2f, Interpolation.sine) {
|
||||||
override fun update(percent: Float) = updateRedPercent(1 - percent)
|
override fun update(percent: Float) = updateRedPercent(1 - percent)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user