Browse Source

[ts] Fixed sack (physics4) examples.

Davide Tantillo 2 tháng trước cách đây
mục cha
commit
5cb6577df3

+ 1 - 1
spine-ts/spine-phaser-v3/example/physics.html

@@ -17,7 +17,7 @@
     class BasicExample extends Phaser.Scene {
       preload() {
         this.load.spineBinary("sack-data", "/assets/sack-pro.skel");
-        this.load.spineAtlas("sack-atlas", "/assets/7-anticipation.atlas");
+        this.load.spineAtlas("sack-atlas", "/assets/sack.atlas");
       }
 
       create() {

+ 1 - 1
spine-ts/spine-phaser-v4/example/physics.html

@@ -17,7 +17,7 @@
     class BasicExample extends Phaser.Scene {
       preload() {
         this.load.spineBinary("sack-data", "/assets/sack-pro.skel");
-        this.load.spineAtlas("sack-atlas", "/assets/7-anticipation.atlas");
+        this.load.spineAtlas("sack-atlas", "/assets/sack.atlas");
       }
 
       create() {

+ 1 - 1
spine-ts/spine-pixi-v7/example/physics.html

@@ -24,7 +24,7 @@
 
         // Pre-load the skeleton data and atlas. You can also load .json skeleton data.
         PIXI.Assets.add("sackData", "/assets/sack-pro.skel");
-        PIXI.Assets.add("sackAtlas", "/assets/7-anticipation-pma.atlas");
+        PIXI.Assets.add("sackAtlas", "/assets/sack-pma.atlas");
         await PIXI.Assets.load(["sackData", "sackAtlas"]);
 
         // Create the spine display object

+ 1 - 1
spine-ts/spine-pixi-v8/example/physics.html

@@ -24,7 +24,7 @@
 
         // Pre-load the skeleton data and atlas. You can also load .json skeleton data.
         PIXI.Assets.add({alias: "sackData", src: "/assets/sack-pro.skel"});
-        PIXI.Assets.add({alias: "sackAtlas", src: "/assets/7-anticipation-pma.atlas"});
+        PIXI.Assets.add({alias: "sackAtlas", src: "/assets/sack-pma.atlas"});
         await PIXI.Assets.load(["sackData", "sackAtlas"]);
 
         // Create the spine display object

+ 2 - 2
spine-ts/spine-webcomponents/example/tutorial.html

@@ -998,7 +998,7 @@ async function updateCelesteAnimations() {
             <div class="split-right">
                 <spine-skeleton
                     identifier="sack-debug"
-                    atlas="/assets/7-anticipation-pma.atlas"
+                    atlas="/assets/sack-pma.atlas"
                     skeleton="/assets/sack-pro.skel"
                     animation="cape-follow-example"
                     debug
@@ -1018,7 +1018,7 @@ async function updateCelesteAnimations() {
                 <script>escapeHTMLandInject(`
 <spine-skeleton
     identifier="sack-debug"
-    atlas="/assets/7-anticipation-pma.atlas"
+    atlas="/assets/sack-pma.atlas"
     skeleton="/assets/sack-pro.skel"
     animation="cape-follow-example"
     debug

+ 2 - 2
spine-ts/spine-webgl/example/physics.html

@@ -25,14 +25,14 @@
 				// Load the skeleton file.
 				canvas.assetManager.loadBinary("/assets/sack-pro.skel");
 				// Load the atlas and its pages.
-				canvas.assetManager.loadTextureAtlas("/assets/7-anticipation-pma.atlas");
+				canvas.assetManager.loadTextureAtlas("/assets/sack-pma.atlas");
 			}
 
 			initialize(canvas) {
 				let assetManager = canvas.assetManager;
 
 				// Create the texture atlas.
-				var atlas = assetManager.require("/assets/7-anticipation-pma.atlas");
+				var atlas = assetManager.require("/assets/sack-pma.atlas");
 
 				// Create a AtlasAttachmentLoader that resolves region, mesh, boundingbox and path attachments
 				var atlasLoader = new spine.AtlasAttachmentLoader(atlas);