Cocos2d label对齐的锚点设置

//Left Alignment
[gameBeginLabel setAnchorPoint: ccp(0, 0.5f)];
// Right Alignment
[gameBeginLabel setAnchorPoint: ccp(1, 0.5f)];
// Top Alignment
[gameBeginLabel setAnchorPoint: ccp(0.5f, 0)];
// Bottom Alignment
[gameBeginLabel setAnchorPoint: ccp(0.5f, 1.0f)];
// Center - Default

[gameBeginLabel setAnchorPoint: ccp(0.5f, 0.5f)];


你可能感兴趣的:(Cocos2d label对齐的锚点设置)