
手机游戏开发
不想当艺术家的程序员不是好程序员
这个作者很懒,什么都没留下…
展开
-
【Pia开发日记】cocos2d-x CCDictionary allKeys用法
CCArray* CCDictionary::allKeys() { //取得词汇的数量 int iKeyCount = this->count(); if (iKeyCount <= 0) return NULL; //创建一个iKeyCount大小的CCArray CCArray* pArray = CCArray::createWithCapacity原创 2013-11-27 16:46:40 · 1145 阅读 · 0 评论 -
【Pia开发日记】schedule_selector中的this指针
schedule_selector中的this指针是调用schedule/scheduleOnce的对象的指针。 void RoleLayer::createSpark(int positionX,int positionY){ CCSprite* spark = CCSprite::create("Particle/snow.png"); spark->setPosition(ccp(po原创 2013-12-09 02:55:07 · 1104 阅读 · 0 评论 -
【Pia开发日记】cocos2d-x CCSprite被AddChild后出现Bug,而CCLayer不会
cocos2d-x CCSprite被AddChild后出现Bug,而CCLayer不会原创 2013-12-14 15:03:59 · 1149 阅读 · 0 评论 -
【Pia日记】cocos2d-x 如何根据Tag判断子节点是否存在
if(this->getChildByTag(50))原创 2013-12-14 16:48:48 · 3452 阅读 · 0 评论 -
【巴嘎日记】cocos2d-x CCMenuItem 在回调函数中清楚自身出现的Bug
void CCMenuItem::activate() { if (m_bIsEnabled) { if (m_pListener && m_pfnSelector) { (m_pListener->*m_pfnSelector)(this); } if (kScriptTyp原创 2013-12-15 17:34:15 · 1288 阅读 · 0 评论