Skip to content

Commit 1077d76

Browse files
committed
FXGL 17 intro
1 parent 1502181 commit 1077d76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/IntroScene.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ class FXGLIntroScene : IntroScene() {
182182
private fun playAnim3() {
183183
delayIndex = 0.0
184184

185-
pixels1.forEach { p ->
185+
pixels1.sortedBy { it.layoutX }.forEach { p ->
186186
animationBuilder(this)
187187
.delay(Duration.seconds(random(delayIndex, delayIndex + 0.21)))
188188
.duration(Duration.seconds(1.05))
189189
.interpolator(Interpolators.EXPONENTIAL.EASE_IN())
190190
.animate(AnimatedPoint2D(
191191
Point2D(p.translateX, p.translateY),
192-
Point2D(appWidth * 2.0, appHeight * 2.0))
192+
Point2D(appWidth * 2.0, appHeight / 2.0))
193193
)
194194
.onProgress(Consumer {
195195
p.translateX = it.x
Loading

0 commit comments

Comments
 (0)