• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xxhong
经验教训远比技术重要
博客园 首页 新随笔 联系 管理

随笔分类 -  cocos2d-x

 
cocos2d-x图层相关 锚点
摘要:CCLayerColor* ccc = CCLayerColor::create(ccc4(255,0,0,255)); ccc->setContentSize(CCSize(200,200)); CCLog("anchorgetAnchorPoint().x,ccc->getAnchorPoint().y); ccc->ignoreAnchorPointForPosition(false);//设置false后有效 ccc->setPosition(ccp(getContentSize().width/2,getContentSize().height/2) 阅读全文
posted @ 2014-03-10 19:04 xxhong 阅读(380) 评论(0) 推荐(0)
cocos2d-x 常用UI
摘要:CCSprite* sprite = CCSprite::create("CloseNormal.png"); sprite->setPosition(ccp(50, 50)); this->addChild(sprite); CCLabelTTF* ttf = CCLabelTTF::create("徐西宏", "Arial", 40); ttf->setPosition(ccp(70, 70)); this->addChild(ttf); CCLabelTTF* mttf = CCLabelTTF::cre 阅读全文
posted @ 2014-03-09 23:06 xxhong 阅读(309) 评论(0) 推荐(0)
cocos2d-x屏蔽编译错误
摘要:APP_CFLAGS += -Wno-error=format-security 阅读全文
posted @ 2014-03-03 19:02 xxhong 阅读(124) 评论(0) 推荐(0)
cocos2d-x创建项目
摘要:2.0之后的创建项目方法第一步,首先cd cocos2d-x-2.2.1/tools/project-creator/第二步,./create_project.py-project HelloWorld -packagecom.xxhong.HelloWorld -languagecpp 第三步,到这里来找你的项目就可以了,cocos2d-x-2.2.1/projects/HelloTest 阅读全文
posted @ 2014-02-27 23:04 xxhong 阅读(934) 评论(0) 推荐(0)
 


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3