随笔分类 -  cocos2d-x

cocos2d-x之多点触碰初试
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); auto listener=EventLis 阅读全文
posted @ 2016-02-29 22:18 baraka 阅读(118) 评论(0) 推荐(0)
cocos2d-x之事件传递
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size size=Director::getInstance()->getVisibleSize(); auto label=LabelTTF::create("Cl 阅读全文
posted @ 2016-02-29 21:27 baraka 阅读(126) 评论(0) 推荐(0)
cocos2d-x之单点触碰初试
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size size=Director::getInstance()->getVisibleSize(); auto label=LabelTTF::create("Cl 阅读全文
posted @ 2016-02-29 21:17 baraka 阅读(124) 评论(0) 推荐(0)
cocos2d-x之value
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 20:32 baraka 阅读(337) 评论(0) 推荐(0)
cocos2d-x之Vector与map
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 20:04 baraka 阅读(289) 评论(0) 推荐(0)
cocos2d-x之初试内存管理机制
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 19:45 baraka 阅读(132) 评论(0) 推荐(0)
cocos2d-x之场景转换特效
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 16:36 baraka 阅读(169) 评论(0) 推荐(0)
cocos2d-x之Action特效
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 16:16 baraka 阅读(181) 评论(0) 推荐(0)
cocos2d-x之action初试
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 14:11 baraka 阅读(143) 评论(0) 推荐(0)
cocos2d-x图层以及显示对象的基本使用
摘要:LogoNode: #ifndef LogoNode_hpp #define LogoNode_hpp #include <stdio.h> #include "cocos2d.h" USING_NS_CC; class LogoNode:public Node { protected: Sprit 阅读全文
posted @ 2016-02-29 01:18 baraka 阅读(581) 评论(0) 推荐(0)
cocos2d-x基础元素之显示对象
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-29 00:46 baraka 阅读(340) 评论(0) 推荐(0)
坐标系之小球向量坐标碰撞
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-28 23:31 baraka 阅读(231) 评论(0) 推荐(0)
坐标系-三角函数
摘要:bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-02-28 23:00 baraka 阅读(1068) 评论(0) 推荐(0)
初试cocos2d-x坐标系
摘要:bool HelloWorld::init() { ////////////////////////////// if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibl 阅读全文
posted @ 2016-02-28 22:10 baraka 阅读(154) 评论(0) 推荐(0)
关于mac环境下删除cocos2d-x环境变量配置的方法
摘要:yangchaodeMacBook-Air:downloads yangchao$ vim ~/.bash_profile 阅读全文
posted @ 2016-02-11 18:16 baraka 阅读(318) 评论(0) 推荐(0)