cocos2d-x-3.x 操作(2)简单定位点

接第操作(1)

1 Sprite *s = Sprite::create("");
2 
3 s->setAnchorPoint(Point(0,0));//定义0,0点
4 
5 s->setPosition(Point(100,200));//设置位置
6 
7 addChild(s);

 

还有许多的功能去文档里看看。

posted on 2015-12-04 18:11  四月厨  阅读(94)  评论(0编辑  收藏  举报