随笔分类 -  cocos2d

摘要:HttpClient 是extensions/network的工具类 提供http请求支持 使用多线程调用crul实现 此类是在基于cocos2dx 使用多线程技术的很好的范例设计上比较完整的诠释了 生产者与消费者模型* 生产者与消费者模型中,要保证以下几点:* 1 同一时间内只能有一个生产者生产 ... 阅读全文
posted @ 2015-06-04 15:17 thc 阅读(756) 评论(0) 推荐(0)
摘要:CCApplication.cpp function:sharedApplication line:60Edit cocos2dx\platform\android\jni\Java_org_cocos2dx_lib_Cocos2dxRenderer.cppLine 18 to:if (CCDire... 阅读全文
posted @ 2014-05-28 18:22 thc 阅读(1133) 评论(0) 推荐(0)
摘要:CCFileUtils::sharedFileUtils()->getWritablePath() 默认为 /data/data/prjName/"Java_org_cocos2dx_lib_Cocos2dxHelper.h" 的std::string getFileDirectoryJNI() 方... 阅读全文
posted @ 2014-05-28 15:18 thc 阅读(6129) 评论(0) 推荐(0)
摘要:coco2d 设置可见区域参考http://blog.csdn.net/tangaowen/article/details/7539536原理1 重写visit 方法2glScissor 函数-(void) visit{ // quick return if not visible. children won't be drawn. if (!visible_) return; kmGLPushMatrix(); if ( grid_ && grid_.active) [grid_ beforeDraw]; [s... 阅读全文
posted @ 2013-09-01 21:52 thc 阅读(513) 评论(0) 推荐(0)
摘要:原文参考http://www.pawapps.com/2011/10/24/tutorial-cdaudiomanager-and-cdsoundengine/做了下封装GameSound.h 1 #import 2 #import "CDAudioManager.h" 3 4 // This is a shared header 5 // Don't mind too much what is in this file yet, it'll be explained below. 6 /** CDAudioManager supports two long 阅读全文
posted @ 2013-09-01 17:49 thc 阅读(525) 评论(0) 推荐(0)