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.2.0

  • Added mesh support (requires PixiJS plugin)

1.1.0

  • Added support for hires atlas files