Skip to content

Instantly share code, notes, and snippets.

@vkgtaro
Created April 17, 2015 10:15
Show Gist options
  • Save vkgtaro/cd262cb7449156059634 to your computer and use it in GitHub Desktop.
Save vkgtaro/cd262cb7449156059634 to your computer and use it in GitHub Desktop.
cocos2d-js でスプライトを奥に向かってくるくる回す ref: http://qiita.com/vkgtaro/items/3f3fad692765c6383649
this.sprite = new cc.Sprite("/path/to/card.png");
this.sprite.attr({
x: size.width / 2,
y: size.height / 2
});
this.addChild(this.sprite, 0);
orbit = cc.orbitCamera(1.5, 1, 0, 0, 360, 0, 0);
this.sprite.runAction(orbit.repeatForever());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment