
cocos2d-x
myloveofnote
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cocos2d-x学习笔记——创建精灵
CCTexture2D *pTexture = CCTextureCache::sharedTextureCache()->addImage("HelloWorld.png"); CCSpriteFrame *frame0 = CCSpriteFrame::createWithTexture(pTexture, CCRect(240*1, 160*0, 240, 160)); CC原创 2014-03-17 09:14:47 · 459 阅读 · 0 评论 -
cocos2d-x学习笔记——坐标系,锚点,文本类
CCPoint point = CCDirector::sharedDirector()->convertToUI(sp5->getPosition());//转换为uikit坐标系 CCLOG("x:%f, y:%f", point.x,point.y);//在屏幕输出 CCSprite *sp6 = CCSprite::create("HelloWorld.png");//原创 2014-03-17 17:21:42 · 470 阅读 · 0 评论