You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix loading screen logo persisting after preload completes
The default loading screen loads its logo image asynchronously. With the
faster Promise-based loader (18.1.0+), user assets can finish loading
before the logo image, causing the logo Sprite to be added to the game
world after the state transition or game.world.reset() — with no one to
remove it.
Fix by listening for LOADER_COMPLETE to clean up loading screen children,
instead of relying solely on onDestroyEvent (which requires state.change).
Also bumps melonjs to 18.2.1 and updates spine-plugin peerDep accordingly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/melonjs/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Changelog
2
2
3
+
## [18.2.1] (melonJS 2)
4
+
5
+
### Fixed
6
+
- Loader: fix race condition where the default loading screen logo sprite could persist after preloading completes, caused by the async logo image loading finishing after the state transition or `game.world.reset()`
0 commit comments