diff --git a/spine-ts/spine-webgl/example/webcomponent-tutorial.html b/spine-ts/spine-webgl/example/webcomponent-tutorial.html index c7519884a..bb5927dba 100644 --- a/spine-ts/spine-webgl/example/webcomponent-tutorial.html +++ b/spine-ts/spine-webgl/example/webcomponent-tutorial.html @@ -2103,8 +2103,7 @@ stretchyman.update = (canvas, delta, skeleton, state) => { (async () => { const tank = spine.getSpineWidget("tank"); const tank2 = spine.getSpineWidget("tank2"); - await tank.loadingPromise; - await tank2.loadingPromise; + await Promise.all([tank.loadingPromise, tank2.loadingPromise]); tank.beforeUpdateWorldTransforms = (skeleton, state) => { if (!tank.onScreen) return; @@ -2145,8 +2144,7 @@ stretchyman.update = (canvas, delta, skeleton, state) => { (async () => { const tank = spine.getSpineWidget("tank"); const tank2 = spine.getSpineWidget("tank2"); - await tank.loadingPromise; - await tank2.loadingPromise; + await Promise.all([tank.loadingPromise, tank2.loadingPromise]); // since we want the tank to overflow the div, we set fit to none // then we "sync" the tank scale to the one of the tank above @@ -3559,6 +3557,331 @@ TODO` --> + + +
+
+
+