Wait for main character to be loaded to display the GameScene

This change makes sure the character of the current player is fully loaded before we display the game scene.
Otherwise, you could have a glitch for 0.5-2 seconds between the GameScene being displayed and the actual character being displayed.
This commit is contained in:
David Négrier
2022-03-15 11:21:48 +01:00
parent b6b6c7f15f
commit 153bffd521
4 changed files with 41 additions and 6 deletions
+5
View File
@@ -2900,6 +2900,11 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"
ts-deferred@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/ts-deferred/-/ts-deferred-1.0.4.tgz#58145ebaeef5b8f2a290b8cec3d060839f9489c7"
integrity sha1-WBReuu71uPKikLjOw9Bgg5+Uicc=
ts-node@^10.4.0:
version "10.4.0"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.4.0.tgz#680f88945885f4e6cf450e7f0d6223dd404895f7"