[haxe] Port to 4.3 (WIP) - Fixing examples.

This commit is contained in:
Davide Tantillo 2025-06-10 17:14:42 +02:00
parent a06a34c881
commit d7212370f6
2 changed files with 2 additions and 2 deletions

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/sack.atlas"), new FlixelTextureLoader("assets/sack.atlas"));
var atlas = new TextureAtlas(Assets.getText("assets/7-anticipation.atlas"), new FlixelTextureLoader("assets/7-anticipation.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/sack.atlas"), new StarlingTextureLoader("assets/sack.atlas"));
var atlas = new TextureAtlas(Assets.getText("assets/7-anticipation.atlas"), new StarlingTextureLoader("assets/7-anticipation.atlas"));
var skeletondata = SkeletonData.from(Assets.getText("assets/sack-pro.json"), atlas);
var animationStateData = new AnimationStateData(skeletondata);