cocos2d-x
o向阳花o
渴望向阳的温暖,绽放自己的光彩
展开
-
cocos2dx Sprite 添加点点击事件 node
Sprite node 添加点点击事件 function isTouchMe(target, touch, event, rect) { var locationInNode = target.convertToNodeSpace(touch.getLocation()); var s = target.getContentSize(); var rect = rec...原创 2019-12-28 17:34:19 · 1196 阅读 · 0 评论 -
sprite 圆形运动,圆周运动
var radius = 80; var card = new Card(); card.setData(2, null, 2); card.setPosition(cc.p(300 + radius, 300));原创 2017-08-18 19:41:48 · 1808 阅读 · 0 评论