![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cocos2d-x
wangdajs
这个作者很懒,什么都没留下…
展开
-
创建背景,精灵,label等
//用 auto visibleSize = Director::getInstance()->getVisibleSize(); //添加背景 auto layerColorBG = cocos2d::LayerColor::create(cocos2d::Color4B(180,170,160,255)); this->addChild(layerC原创 2014-08-17 11:28:52 · 366 阅读 · 0 评论 -
检测滑动触摸(向左,向右,向上,向下)-我的cocos2d-x学习之路
//加入游戏的手势识别,进行绑定 auto touchListener = EventListenerTouchOneByOne::create(); touchListener->onTouchBegan = CC_CALLBACK_2(HelloWorld::onTouchBegan,this); touchListener->onTouchEnded =原创 2014-08-17 11:05:35 · 1470 阅读 · 0 评论 -
博客文章说明
因为原创 2014-08-17 11:21:42 · 299 阅读 · 0 评论