首页 极刻 圈子 教程 开源
极客社区
写文章 发极刻 建圈子 发项目
标签 shareddirector 相关标签 cocos2d ccdirector x cocos2dx eprojection

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

推荐极客

Blaze Blaze 80407013 80407013 fundebug fundebug 81293313 81293313 87627995 87627995 88916570 88916570 84214254 84214254 86593278 86593278

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.