We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1502181 commit 1077d76Copy full SHA for 1077d76
fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/IntroScene.kt
@@ -182,14 +182,14 @@ class FXGLIntroScene : IntroScene() {
182
private fun playAnim3() {
183
delayIndex = 0.0
184
185
- pixels1.forEach { p ->
+ pixels1.sortedBy { it.layoutX }.forEach { p ->
186
animationBuilder(this)
187
.delay(Duration.seconds(random(delayIndex, delayIndex + 0.21)))
188
.duration(Duration.seconds(1.05))
189
.interpolator(Interpolators.EXPONENTIAL.EASE_IN())
190
.animate(AnimatedPoint2D(
191
Point2D(p.translateX, p.translateY),
192
- Point2D(appWidth * 2.0, appHeight * 2.0))
+ Point2D(appWidth * 2.0, appHeight / 2.0))
193
)
194
.onProgress(Consumer {
195
p.translateX = it.x
fxgl/src/main/resources/fxglassets/textures/intro/fxgl_logo.png
-1.36 KB
0 commit comments