[haxe] Fixed sack example export.

This commit is contained in:
Davide Tantillo 2025-06-23 10:55:52 +02:00
parent 2e6f632000
commit 522785b8fb
5 changed files with 6 additions and 6 deletions

View File

@ -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/"

View File

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

View File

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

@ -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;

View File

@ -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);