- 博客(8)
- 问答 (3)
- 收藏
- 关注
原创 cocoscreator 2.2.2 学习笔记-单例
实现基类模板export default class Singleton<T>{ private static instance: any = null; public static Instance<T>(c: { new(): T }): T { if (this.instance == null) { this.instance = new c();...
2020-09-15 14:50:33
243
原创 cocos2d-x 3.2 Json文件解析
//引入的头文件和域,在3.2版本中json文件的解析已经不需要自己导入三方文件,已经自己集成到了引擎#include "json/rapidjson.h"#include "json/document.h"using namespace rapidjson;//下面举一个比较有代表性的例子{ "json":"json string", "arr
2014-12-29 09:20:40
531
原创 ios + cocos2d-x 计数统计提示相应信息
[[CommentForIOS sharedInstance] increaseDefaultNum];
2014-12-24 11:14:57
383
原创 ios + cocos2d-x 友盟SDK触发方法
NSString* appKey = [[NSString alloc]initWithString:@"友盟ID"];[MobClick startWithAppkey:appKey];[MobClick setLogEnabled:YES];
2014-12-24 11:09:39
566
原创 ios+cocos2d-x 插页google广告
GADInterstitial* _myInterstitial; //生命一个全局GAD对象在程序启动时初始化一下方便以后使用 _myInterstitial = [[GADInterstitial alloc]init]; _myInterstitial.delegate = self; _myInterstitial.adUnitID = @"广告ID";
2014-12-24 10:43:01
560
原创 ios+cocos2d-x推送消息
这里在程序进入后台和从后台重新启动为例void AppDelegate::createMyPushNotification()//创建一个推送{ int myLife = UserDefault::getInstance()->getIntegerForKey("LifeNumber"); int needTime = 0; if (myLif
2014-12-16 13:41:28
986
原创 cocos2d-x 3.0 命令行创建工程
./create_project.py -n Yang -k YangZi -l cpp -p /Users/gamedev/Desktop/cocos2d-x-3.0beta2
2014-04-17 11:16:34
760
TA创建的收藏夹 TA关注的收藏夹
TA关注的人