上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页

2016年9月19日

cocos2d lua的cclog 在logcat中显示

摘要: 改成这样就可以了 阅读全文

posted @ 2016-09-19 11:53 -冷夜- 阅读(1560) 评论(0) 推荐(0)

2016年9月3日

c++ 重定位输出到DOS

摘要: #define USE_WIN32_CONSOLE int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCm... 阅读全文

posted @ 2016-09-03 18:53 -冷夜- 阅读(593) 评论(0) 推荐(0)

2016年4月25日

cocos2dx伸缩式列表效果

摘要: 效果: 代码: ElasticListView.h #pragma once //std #include <string> #include <map> //cocos #include "cocos2d.h" #include "cocostudio/CocoStudio.h" #include 阅读全文

posted @ 2016-04-25 16:36 -冷夜- 阅读(1824) 评论(0) 推荐(0)

2016年3月17日

cocos2dx输出信息重定向到控制台

摘要: 重定向输出到控制台,方便调试,代码: 阅读全文

posted @ 2016-03-17 14:47 -冷夜- 阅读(2033) 评论(0) 推荐(0)

2016年1月15日

cocos2dx Tab选项卡控件的实现

摘要: 选项卡控件在游戏和应用中很是常见,但是cocostudio里并没有实现好的选项卡控件,于是自己封装了 一个,效果如下:代码:TabUiControl.h 1 #pragma once 2 3 //std 4 #include 5 6 //cocos 7 #include "cocos2d.h"... 阅读全文

posted @ 2016-01-15 17:37 -冷夜- 阅读(1895) 评论(2) 推荐(0)

2015年7月24日

cocos2dx 3.4 截图代码

摘要: Size size = Director::sharedDirector()->getWinSize(); //定义一个屏幕大小的渲染纹理 RenderTexture* pScreen = RenderTexture::create(size.width,size.hei... 阅读全文

posted @ 2015-07-24 17:42 -冷夜- 阅读(364) 评论(0) 推荐(0)

2015年3月3日

cocos2dx android平台事件系统解析

摘要: 对于cocos2dx在android平台事件的响应过程很模糊,于是分析了下源码,cocos2dx 版本3.4,先导入一个android工程,然后看下AndroidManifest.xml ... 阅读全文

posted @ 2015-03-03 10:30 -冷夜- 阅读(7085) 评论(0) 推荐(0)

2015年2月9日

cocos2dx3.4 保存json文件

摘要: 头文件:#include "json/document.h"#include "json/stringbuffer.h"#include "json/writer.h"代码:void UserManage::SaveUserToFile(){ do { CC_BREAK_... 阅读全文

posted @ 2015-02-09 14:15 -冷夜- 阅读(1765) 评论(0) 推荐(0)

cocos2dx3.4 解析json文件

摘要: 头文件:#include "json/document.h"#include "json/stringbuffer.h"#include "json/writer.h"代码:bool UserManage::LoadUsers(){ bool bret=false; do { ... 阅读全文

posted @ 2015-02-09 14:14 -冷夜- 阅读(6680) 评论(0) 推荐(0)

cocos2dx3.4 分割plist图片

摘要: 如果想要修改一个plist文件新打包成plist,而此刻原来的小图都找不到了,那只能把plist分解了,代码如下:void UiManage::DecodePlist(string imgPath,string plistPath){ FileUtils *pFileUtil=FileUtil... 阅读全文

posted @ 2015-02-09 14:10 -冷夜- 阅读(3210) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页

导航