摘要: 改变锚点时,同过计算偏移量修正position从而保持CCNode在屏幕上的位置不变 1 void CLayer::change_anchorpoint(CCNode* node,CCPoint newpt) 2 { 3 float dx, dy, diffx, diffy, height,... 阅读全文
posted @ 2014-11-27 20:04 Reise 阅读(702) 评论(0) 推荐(0) 编辑