Cocos2d-x中触摸响应 CCDirector::sharedDirector()->getTouchDispatcher()->addStandardDelegate(this,0);单点和多点 CCMenu的触摸优先级是-128,值越小,触摸优先级越高 85427010 2013-10-13 16:50:06
cocos2d-x UI常用的类 在Cocos2d-x中个关卡都使用一个场景,或者在同一个场景里设置多个层作为关卡。No.1 每一个关卡都使用一个场景 最直接的方法是每一个关卡都使用一个单独的场景。addChild(middle);this->addChild(node); 文艺小青年 2013-11-10 17:27:35
cocos2dx ipad2闪屏问题 setAlphaBlending(true);setDepthTest(true);setProjection(m_eProjection);选任意一个都行。setDepthTest 可能会影响到一些效果,转换以及瓦片地图z轴上的行为。 80487916 2013-07-06 10:33:58
cocos2dx ipad2闪屏问题 setAlphaBlending(true);setDepthTest(true);setProjection(m_eProjection);选任意一个都行。setDepthTest 可能会影响到一些效果,转换以及瓦片地图z轴上的行为。 BenOnceMore 2013-07-06 08:57:57
Cocos2d-x 实现按Home和待机键后,再进入游戏显示暂停界面 首先,看看如何暂停游戏和恢复游戏。//暂停游戏 cocos2d::CCDirector::sharedDirector()->pause();很简单吧,cocos2d暂停游戏时保存当前的状态。} frankwang 2013-10-28 12:01:19
cocos2d-x 触摸简单分析 只会开启一个点的触摸。CCDirector*pDirector=CCDirector::sharedDirector();pDirector->getTouchDispatcher()->removeDelegate(this);} frankwang 2012-07-27 14:28:25
Cocos2d 有用的各种方法(转) //4、在cocos2d中设置横屏 return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );[self addChild:tempSystem]; 86463960 2012-07-28 12:22:26