mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[haxe] Fixed sack example export.
This commit is contained in:
parent
2e6f632000
commit
522785b8fb
@ -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.json "$ROOT/spine-haxe/example/assets/"
|
||||||
cp -f ../7-anticipation/export/sack-pro.skel "$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"
|
cp -f ../7-anticipation/export/7-anticipation.atlas "$ROOT/spine-haxe/example/assets/sack.atlas"
|
||||||
$sed -i 's/7-anticipation-pma.png/sack-pma.png/g' "$ROOT/spine-haxe/example/assets/sack-pma.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-pma.png"
|
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.json "$ROOT/spine-haxe/example/assets/"
|
||||||
cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-haxe/example/assets/"
|
cp -f ../snowglobe/export/snowglobe-pro.skel "$ROOT/spine-haxe/example/assets/"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
7-anticipation.png
|
sack.png
|
||||||
size: 512, 512
|
size: 512, 512
|
||||||
filter: Linear, Linear
|
filter: Linear, Linear
|
||||||
scale: 0.5
|
scale: 0.5
|
||||||
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
@ -51,7 +51,7 @@ class SackExample extends FlxState {
|
|||||||
button.setPosition(FlxG.width * .75, FlxG.height / 10);
|
button.setPosition(FlxG.width * .75, FlxG.height / 10);
|
||||||
add(button);
|
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 data = SkeletonData.from(loadBinary ? Assets.getBytes("assets/sack-pro.skel") : Assets.getText("assets/sack-pro.json"), atlas, .25);
|
||||||
var animationStateData = new AnimationStateData(data);
|
var animationStateData = new AnimationStateData(data);
|
||||||
animationStateData.defaultMix = 0.25;
|
animationStateData.defaultMix = 0.25;
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class SackExample extends Scene {
|
|||||||
public function load():Void {
|
public function load():Void {
|
||||||
background.color = 0x333333;
|
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 skeletondata = SkeletonData.from(Assets.getText("assets/sack-pro.json"), atlas);
|
||||||
|
|
||||||
var animationStateData = new AnimationStateData(skeletondata);
|
var animationStateData = new AnimationStateData(skeletondata);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user