Skip to content

toufali/Spine-EaselJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spine-EaselJS

Rendering a Spine animation with EaselJS

Spine-EaselJS Demo

Spine Animation Example

var stage = new createjs.Stage('myCanvas');
var dragon = new createjs.Spine("res/sceletons/dragon/dragon.atlas", "res/sceletons/dragon/dragon.json");
dragon.setTransform(300, 220, 0.5, 0.5);
dragon.onComplete = function(){
  console.log(dragon);
  dragon.state.setAnimationByName(0, 'flying', true);
  stage.addChild(dragon);
}
stage.addChild(dragon);
createjs.Ticker.on("tick", function(e){
  dragon.update(e);
  stage.update();
})

About

Rendering a Spine animation with EaselJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.9%
  • CoffeeScript 36.4%
  • HTML 4.7%