Plugin Documentation

Enable Spine 2D skeletal animations.

game.addAsset('spineboy.atlas');
game.addAsset('spineboy.json');

game.createScene('Main', {
    init: function() {
        var player = new game.Spine('spineboy.json');
        player.position.x = game.width / 2;
        player.position.y = game.height - 100;
        player.play('walk', true);
        player.addTo(this.stage);
    }
});

See more examples on the example project.

Releases

1.3.3

  • Added support for clipping

1.3.2

  • Fixed flipped bones rendering

1.3.1

  • Fixed slot change issue

1.3.0

  • Added support for combined skins
  • Added createSkin method to Spine class
  • Added setSkin method to Spine class

1.2.1

  • Fixed mesh rotation
  • Added more events to example project

1.2.0

  • Added mesh support (requires PixiJS plugin)

1.1.0

  • Added support for hires atlas files