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.