cocos2dx
谁占了诚实小郎君
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
lua 单例 and c++单例
Login = {}Login.mgr = {}function Login.ShareMgr(name)local mgr = Login.mgr[name]if not mgr thenlocal layer = require(name).newmgr = layerlogin.mgr[name] = mgrendreturn mgrend原创 2015-11-05 17:18:36 · 328 阅读 · 0 评论 -
资源加载
首先cocos2dx里的资源,有png,plist(pvr),exportjson(json)大致这三类,我们也从这3类去研究相应的加载代码。本次代码分析基于:cocos2dx3.21、pngpng格式的资源,从sprite作为一个切入口来分析,一般Sprite的创建如下Sprite* Sprite::create(const std::string& file转载 2015-10-09 15:20:33 · 509 阅读 · 0 评论 -
后台推送
void PushNotificationIOS::addNoticfy(std::string title,std::string content,unsignedint delalt,std::string key,unsignedint repeatTime){ // 创建一个本地推送// UILocalNotification *notifica转载 2015-10-27 15:12:07 · 427 阅读 · 0 评论
分享