摘要:1.sips 命令,可以处理图片大小,方向.http://www.guomii.com/posts/34165
阅读全文
11 2012 档案
摘要:XCODE Instruments 内存泄漏检查方法 http://blog.csdn.net/totogo2010/article/details/8233565
阅读全文
摘要:1. 找到你自己App工程的 info.plist 文件,2. 找到Icon file ( 或自己增加 ) 加到一个 Resource 下面已有的图片作为图标.3. Clear, Build, Run. 看看结果.
阅读全文
摘要:泰然http://article.ityran.com/archives/category/cocos2d-xdappshttp://www.dapps.net/dev/gamedevA* 算法http://article.ityran.com/archives/2200网络通信http://www.cocos2dev.com/?p=274简单向导http://www.raywenderlich.com/352/how-to-make-a-simple-iphone-game-with-cocos2d-tutorial
阅读全文
摘要:bool HelloWorld::init(){ CCTimer::timerWithTarget(this,schedule_selector( HelloWorld::testTimerCB), 1); this->schedule(schedule_selector( HelloWorld::testTimerCB), 1); return true;}
阅读全文
摘要:#include <time.>struct cocos2d::cc_timeval now; // 秒,毫秒cocos2d::CCTime::gettimeofdayCocos2d(&now, NULL);struct tm * tm;tm = localtime(&now.tv_sec);int year = tm->tm_year + 1900;int month = tm->tm_mon + 1;int day = tm->tm_mday;注意:在CCTime::gettimeofdayCocos2d函数中CC_UNUSED_PARAM为消
阅读全文
摘要:有的PNG在MAC下可以显示,但拿到WINDOWS下就不能显示。就是因为这些文件是经过xcode编译优化过的,所以无法直接查看。我看网上说是 "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush\ -revert-iphone-optimizations -q Local.png Local-standard.png" 这个,但我在自己的MAC(4.4)上没找到。-------------------------------------------------------------------
阅读全文
摘要:下面是我在写LUA脚本过程中遇到的问题1----------------------------------------------------------------local t = {}t[1] = 10t[3] = 20t[4] = 30print(table.getn(t))结果: 4LUA 中的 table.getn 函数是根据下标数来设定的, 上面LUA代码中 "t[4] = 30" 下标为 4。则 table.getn(t) 的结果为4.如果在 LUA 脚本中要获取 TABLE 大小时,要 "for k, v in pairs(t) do ...
阅读全文
浙公网安备 33010602011771号