Created
April 17, 2015 10:15
-
-
Save vkgtaro/cd262cb7449156059634 to your computer and use it in GitHub Desktop.
cocos2d-js でスプライトを奥に向かってくるくる回す ref: http://qiita.com/vkgtaro/items/3f3fad692765c6383649
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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