Bladeren bron

[haxe] Fixed sack example export.

Davide Tantillo 1 maand geleden
bovenliggende
commit
522785b8fb

+ 3 - 3
examples/export/runtimes.sh

@@ -631,9 +631,9 @@ cp -f ../cloud-pot/export/cloud-pot.png "$ROOT/spine-haxe/example/assets/"
 
 cp -f ../7-anticipation/export/sack-pro.json "$ROOT/spine-haxe/example/assets/"
 cp -f ../7-anticipation/export/sack-pro.skel "$ROOT/spine-haxe/example/assets/"
-cp -f ../7-anticipation/export/7-anticipation.atlas "$ROOT/spine-haxe/example/assets/sack-pma.atlas"
-$sed -i 's/7-anticipation-pma.png/sack-pma.png/g' "$ROOT/spine-haxe/example/assets/sack-pma.atlas"
-cp -f ../7-anticipation/export/7-anticipation.png "$ROOT/spine-haxe/example/assets/sack-pma.png"
+cp -f ../7-anticipation/export/7-anticipation.atlas "$ROOT/spine-haxe/example/assets/sack.atlas"
+$sed -i 's/7-anticipation.png/sack.png/g' "$ROOT/spine-haxe/example/assets/sack.atlas"
+cp -f ../7-anticipation/export/7-anticipation.png "$ROOT/spine-haxe/example/assets/sack.png"
 
 cp -f ../snowglobe/export/snowglobe-pro.json "$ROOT/spine-haxe/example/assets/"
 cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-haxe/example/assets/"

+ 1 - 1
spine-haxe/example/assets/sack-pma.atlas → spine-haxe/example/assets/sack.atlas

@@ -1,4 +1,4 @@
-7-anticipation.png
+sack.png
 	size: 512, 512
 	filter: Linear, Linear
 	scale: 0.5

+ 0 - 0
spine-haxe/example/assets/sack-pma.png → spine-haxe/example/assets/sack.png


+ 1 - 1
spine-haxe/example/src/flixelExamples/SackExample.hx

@@ -51,7 +51,7 @@ class SackExample extends FlxState {
 		button.setPosition(FlxG.width * .75, FlxG.height / 10);
 		add(button);
 
-		var atlas = new TextureAtlas(Assets.getText("assets/7-anticipation.atlas"), new FlixelTextureLoader("assets/7-anticipation.atlas"));
+		var atlas = new TextureAtlas(Assets.getText("assets/sack.atlas"), new FlixelTextureLoader("assets/sack.atlas"));
 		var data = SkeletonData.from(loadBinary ? Assets.getBytes("assets/sack-pro.skel") : Assets.getText("assets/sack-pro.json"), atlas, .25);
 		var animationStateData = new AnimationStateData(data);
 		animationStateData.defaultMix = 0.25;

+ 1 - 1
spine-haxe/example/src/starlingExamples/SackExample.hx

@@ -47,7 +47,7 @@ class SackExample extends Scene {
 	public function load():Void {
 		background.color = 0x333333;
 
-		var atlas = new TextureAtlas(Assets.getText("assets/7-anticipation.atlas"), new StarlingTextureLoader("assets/7-anticipation.atlas"));
+		var atlas = new TextureAtlas(Assets.getText("assets/sack.atlas"), new StarlingTextureLoader("assets/sack.atlas"));
 		var skeletondata = SkeletonData.from(Assets.getText("assets/sack-pro.json"), atlas);
 
 		var animationStateData = new AnimationStateData(skeletondata);