https://blog.csdn.net/weixin_43854764/article/details/89913984
cocos creator基础总结(一) http://www.matools.com/blog/190782553
Cocos Creator 访问节点和组件(摘自官方文档) http://blog.sina.com.cn/s/blog_9fe6ba930102wyh9.html
https://github.com/woodlouseking/clientCourse login demo
https://docs.cocos2d-x.org/creator/manual/zh/publish/debug-jsb.html 原生平台 JavaScript 调试
cc.game.end();
cc.audioEngine.playEffect(self.SuccessAudio,false);
cc.game.addPersistRootNode(this.node);
cc.game.on(cc.game.EVENT_HIDE,function() {
cc.log("游戏进入后台");
poker.dataMgr.saveUserData();
});
cc.game.on(cc.game.EVENT_SHOW,function() {
cc.log("游戏返回前台");
});
jsb.reflection.callStaticMethod("VoiceSDK", "prepareRecord:",filename);
cc.sys.localStorage.setItem("account",account);
CoupleStudio/cocoscreator_majiang
cocos_creator_mj-master
https://www.cnblogs.com/billyrun/articles/8529503.html
https://blog.csdn.net/hj3601947/article/details/89399575
cocos creator基础-(二十五)FileUtils本地文件读写https://www.cnblogs.com/orxx/p/10547076.html
Cocos Creator如何读写JSON文件 https://www.jianshu.com/p/fc39ede8abb8
js中判断数组中是否包含某元素的方法 https://www.cnblogs.com/yunshangwuyou/p/9032560.html
js改变json中某个value的值 https://blog.csdn.net/qq_42339374/article/details/100558202
利用nodejs对本地json文件进行增删改查 https://blog.csdn.net/zhaoxiang66/article/details/79894209
cocos creator基础-(二十五)FileUtils本地文件读写 https://www.cnblogs.com/orxx/p/10547076.html
Cocos Creator常用API与方法 https://blog.csdn.net/sotmwhat/article/details/93884076
https://www.jianshu.com/p/6257bf968150 Cocos Creator 数据存储之 Array
js判断一个数组是否包含一个指定的值 https://www.cnblogs.com/hepengqiang/p/9822118.html
利用数组中的筛选函数获取质数 https://blog.csdn.net/qq_40140218/article/details/99957789
cocos creator基础-cocos动画、碰撞、绘图 https://www.cnblogs.com/orxx/p/10300293.html
Cocos教你用cc.Graphics动态生成奇妙图形 http://games.ifeng.com/a/20160913/44451341_0.shtml
清除所有的缓存数据: cc.sys.localStorage.clear();
cocos creator 安卓应用打包发布 https://blog.csdn.net/qq_37652256/article/details/81905176
npm的相关删除命令 https://www.jianshu.com/p/73f139771d5f
cocos creator中适配iPhone X https://www.jianshu.com/p/ba22b2d60644Cocos Creator 组件-画笔 https://www.cnblogs.com/lyonwu/p/10368823.html
cocos creator MaskAssembler void MaskAssembler::handle(NodeProxy *node, ModelBatcher* batcher, Scene* scene) if (_clearSubHandle) {
batcher->commit(node,_clearSubHandle, node->getCullingMask());
}
var haveExp = UserLocalData.getExp();
var haveLevel = UserLocalData.getUserLV().level;
var conditionArr = [];
conditionArr = ConfigueTool.getInstance().expconfigList.filter((expModel) => {
return (expModel.exp <= haveExp && expModel.lv > haveLevel);
});
if(conditionArr.length > 0){
//这个对应的是升级
var currentEXP = conditionArr[conditionArr.length -1];
var levelString = currentEXP.lv;
var obj = {
level:levelString,
upgrade:true
};
UserLocalData.setUserLV(obj);//计算升级后用户应得奖励
var rewardCoin = 0, rewardTicket = 0, rewardCard = 0;
var startIndex = haveLevel;
for (let index = startIndex; index < levelString; index++) {//这儿算
var expItem = ConfigueTool.getInstance().expconfigList[index];
rewardCoin += expItem.coin;
rewardTicket += expItem.ticket;
rewardCard += expItem.card;
}
UserLocalData.setUserUpgradeReward({"rewardCoin":rewardCoin,"rewardTicket":rewardTicket==0?"-":rewardTicket,"rewardCard":rewardCard==0?"-":rewardCard});
}
module.exports.getUpgradePercent();
UserLocalData.addExp(18);
//862505
//计算升级百分比判断有无下一集
getUpgradePercent:function() {
//根据等级 经验
var current_lv = UserLocalData.getUserLV().level;
var next_lv = current_lv + 1;
var hasNext = next_lv <= ConfigueTool.getInstance().expconfigList.length?true:false;
var nextExp = hasNext?ConfigueTool.getInstance().expconfigList[current_lv]:ConfigueTool.getInstance().expconfigList[ConfigueTool.getInstance().expconfigList.length -1];
var haveExp = UserLocalData.getExp();
var percentNumber = haveExp / nextExp.exp;
percentNumber = String(percentNumber).replace(/^(.*\..{4}).*$/,"$1");
var upgradePercent = hasNext?percentNumber:1.0;
module.exports.upDateUserExperience(upgradePercent);
},
//更新用户经验
upDateUserExperience:function(percent) {
var obj = {
url: 'http://api-event.ma-jiang.xyz/v3/user/experience',
requestType: 'POST',
params: {
experience: UserLocalData.getExp(),
level:UserLocalData.getUserLV().level,
upgrade: percent
},
success: function(jsonData) {
console.log('jsonData ' + JSON.stringify(jsonData));
}.bind(this),
fail: function() {
console.log(' errorjsonData ' + JSON.stringify(jsonData));
}.bind(this)
};
NetManager.request(obj);
},
https://www.cnblogs.com/keyi/p/6893705.html js中substring和substr的用法
js怎么保留一位小数点后 https://developer.aliyun.com/ask/117224?spm=a2c6h.13159736
https://www.jianshu.com/p/505e05d34c5e Cocos Creator 实现画板(你画我猜)
https://blog.csdn.net/zdhsoft/article/details/82750892 基于cocos creator画六维图
var handbg = contentView.getChild("n25");
let mask = new cc.Node('');
mask.width = handbg.node.width;
mask.height = handbg.node.height;
handbg.node.addChild(mask);
mask.addComponent(cc.Graphics);
this.graphics = mask.getComponent(cc.Graphics);
let offset = cc.v2(handbg.node.width * mask.anchorX, handbg.node.height * mask.anchorY);
// this.graphics.circle(0 + offset.x, - offset.y, handbg.node.width/2);//添加颜色及透明度
// let fillColor = cc.Color.RED;//声明一个颜色变量
// fillColor.a=200;//添加透明度
// this.graphics.fillColor=fillColor;//填充
// this.graphics.stroke();
// this.graphics.fill();
this.drawSixLine(handbg.node.width/2,offset);
this.drawSix(handbg.node.width/2,offset);
//生成0.1-1之间的随机数
randNumber() {
let r = Math.random();
if(r < 0.1) r = 0.1;
return r;
},
//画六维图,并填充
drawSix(paramLength,paramsOffSet) {
let graphics = this.graphics;
graphics.strokeColor.fromHEX('#00ff00');
graphics.strokeColor.a = 0;
let first = {x:0,y:0};
for(let i = 0; i < 6; i++) {
let ang = i/3 * Math.PI;
let length = paramLength * this.randNumber();
let x = length * Math.cos(ang);
let y = length * Math.sin(ang);
if(i === 0) {
first.x = x;
first.y = y;
graphics.moveTo(x+paramsOffSet.x,y-paramsOffSet.y);
}
graphics.lineTo(x+paramsOffSet.x,y-paramsOffSet.y);
}
graphics.lineTo(first.x+paramsOffSet.x, first.y-paramsOffSet.y);
graphics.moveTo(paramsOffSet.x,-paramsOffSet.y);
graphics.fillColor.fromHEX('#00ff00');
graphics.fillColor.a = 125;
graphics.fill();
graphics.stroke();
},
//画六维线
drawSixLine(paramLength,paramsOffSet) {
let graphics = this.graphics;
graphics.strokeColor.fromHEX('#ffffff');
for(let i = 0; i < 6; i++) {
let ang = i/3*Math.PI;
let x = paramLength * Math.cos(ang);
let y = paramLength * Math.sin(ang);
graphics.moveTo(paramsOffSet.x,-paramsOffSet.y);
graphics.lineTo(x+paramsOffSet.x,y-paramsOffSet.y);
}
//0 + offset.x, - offset.y
//画圈
let r = paramLength/3;
for(let i = 1; i < 4; i++) {
graphics.circle(paramsOffSet.x,-paramsOffSet.y,i*r);
}
graphics.stroke();
},
Cocos Creator 组件-画笔 https://www.cnblogs.com/lyonwu/p/10368823.html
https://www.cnblogs.com/luorende/archive/2018/08/06/9434220.html
cocos creator 制作圆形头像及高清字体方案 http://www.imooc.com/article/35736?block_id=tuijian_wz
//添加画笔
var analysis_gradient_graphics = mask_node.addComponent(cc.Graphics);//创建了画笔
analysis_gradient_graphics.moveTo(0,0);
analysis_gradient_graphics.lineTo(100,0);
analysis_gradient_graphics.lineTo(0,-50);
analysis_gradient_graphics.lineTo(100,-80);
analysis_gradient_graphics.circle(500,-20,4);
let analysis_StrokeColor = cc.color(255.0, 255.0, 255.0, 255.0);
let analysis_fillColor = cc.Color.WHITE;
analysis_gradient_graphics.fillColor=analysis_fillColor;//填充
analysis_gradient_graphics.strokeColor = analysis_StrokeColor;
analysis_gradient_graphics.lineWidth =2;
analysis_gradient_graphics.stroke();
analysis_gradient_graphics.fill();
cocosCreator 图片和图集的加载 https://blog.csdn.net/Fanstasic/article/details/88910317
cc.loader.loadRes("textures/record_curve_analysis_gradient",cc.SpriteFrame,function(err,ret){//节点添加节点
if(err){
cc.log(err);
return;
}
var testmask = new cc.Node();
var test_node = testmask.addComponent(cc.Mask);//创建了Sprite
var atestmask = new cc.Node();
var atest_node = atestmask.addComponent(cc.Sprite)
atest_node.spriteFrame = ret;
testmask.addChild(atestmask)
record_curve_analysis_gradient_panel.node.addChild(testmask);
atestmask.x = atestmask.width/2;
atestmask.y = -atestmask.height/2;
test_node.type = cc.Mask.Type.RECT;
test_node.alphaThreshold = 0.5;
let graphics = test_node._graphics;
graphics.clear(false);
graphics.moveTo(0, 0);
graphics.lineTo(100, -20);
graphics.lineWidth = 2;
graphics.strokeColor = cc.color(255, 255, 255, 255);
graphics.stroke();
}.bind(this));
https://blog.csdn.net/baidu_29474379/article/details/83857037 FairyGUI笔记:列表(十九)
https://www.cnblogs.com/billyrun/articles/8529503.html CocosCreator原生游戏js与oc/java互调
http://www.bubuko.com/infodetail-2660375.html var o = jsb.reflection.callStaticMethod(className, methodName, methodSignature, parameters...)
Cocos Creater 监听程序到后台和重新到前台 https://www.cnblogs.com/luorende/archive/2018/10/29/9869506.html
js判断日期是否为今天 http://www.fly63.com/article/detial/1006
Cocos Creator 数据存储之 Array https://www.jianshu.com/p/6257bf968150
cocoscreator 下载图片保存本地 https://www.iteye.com/blog/1197757723-2399153
Node.js/JavaScript 获取最近 30 天的日期 https://www.jianshu.com/p/94955eb78b8a
js之字典的学习和使用 https://blog.csdn.net/ganyingxie123456/article/details/78163154
Android:Activity之间跳转和参数传递 https://www.cnblogs.com/tinyphp/p/3840257.html
Cocos Creator接入谷歌广告AdMob详细教程(原创) https://www.jianshu.com/p/cb503e81bf6a
是可以试下把谷歌广告加到哪个位置了(https://blog.csdn.net/oyh6857451/article/details/88596627)
Amazon App Tester工具的安装和配置&Amazon内购接入流程以及测试 https://blog.csdn.net/u013007305/article/details/79311759
http://docs.cocos.com/creator/api/zh/classes/audioEngine.html audioEngine 类型
cocos creator 的jsb 与java层 、oc 层函数相互调用栗子 https://blog.csdn.net/ccnu027cs/article/details/100929458
学习笔记 10_Cocos Creator_ 静态变量和方法 https://blog.csdn.net/leovnay/article/details/79204343
https://blog.csdn.net/zwc2xm/article/details/50901140 cocos2d-js 安卓环境,如何用js代码直接调用java函数
【Cocos Creator】拒绝 evalString 进行回调,使用 JSB 进行手动绑定(流程篇) https://www.codercto.com/a/83122.html
关于CocosCreator代码的跨平台调用(OC\JAVA\JS) https://blog.csdn.net/xqp159357/article/details/90545258
https://www.cnblogs.com/android-blogs/p/6381083.html 谷歌内购
Cocos Creator中Maht.random()的使用 https://blog.csdn.net/qq_40303068/article/details/89157067
https://blog.csdn.net/Yishionwang/article/details/95939960
JS 获取当前时间 以及当天零点时间 https://www.jianshu.com/p/ebf6b4eb907c
https://fairygui.com/docs/guide/editor/controller.html 控制器
抽奖小案例(js抽奖概率+css3旋转动画) https://blog.csdn.net/qq_42209630/article/details/80858809
cocos creator 滚动列表 ListView https://blog.csdn.net/qq_20173207/article/details/86322662
js实现一个按照权重抽奖函数 https://blog.csdn.net/weixin_34008805/article/details/91470724
10 连抽保底的概率模型 https://blog.codingnow.com/2017/01/exponential_distribution.html#c47363
从N个数里面,随机抽取M个数(可以用作抽奖随机用户) https://blog.csdn.net/qq_37481081/article/details/78414451?utm_source=blogkpcl5
按概率随机抽取物品的原理及实现 https://juejin.im/entry/58fef777b123db260cb4443c
https://fairygui.com/docs/guide/editor/scrollpane.html#ScrollPane 滚动容器
滚动容器 https://fairygui.com/docs/guide/editor/scrollpane.html#ScrollPane
求文字向上无限循环滚动代码,无缝隙循环,要HTML的 https://zhidao.baidu.com/question/179251420712884924.html
https://blog.csdn.net/weixin_33726318/article/details/92396954 JS 横向图片跑马灯效果
蚊子的前端博客 用CSS3实现无限循环的无缝滚动 https://www.cnblogs.com/xumengxuan/p/7114721.html
Android webview loading fail in API 21 and above https://stackoverflow.com/questions/41631830/android-webview-loading-fail-in-api-21-and-above
cocoscreator + as java调用js https://blog.csdn.net/Young_Cheng1016/article/details/89030424?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
https://github.com/45498106/CocosCreatorHuangyanMahjong/blob/master/assets/script/common/UserLocalData.js CocosCreatorHuangyanMahjong
js 获取当前日期周一和周日 https://blog.csdn.net/bossxu_/article/details/80368584
js两种方法获取当天时间0点到24点的时间戳 https://blog.csdn.net/weixin_34189116/article/details/88678575
写博客
麻将AI算法(下)
一种高效的麻将AI算法 https://zhuanlan.zhihu.com/p/53587053
简单的麻将ai算法 https://blog.csdn.net/weixin_33967071/article/details/91902465
人工智能AI麻将,麻将AlphaGo,可直接运行 https://download.csdn.net/download/tgrdgfhgfhgfhg/11096226
An AI which can play Japanese mahjong. https://github.com/asuralove/mahjongAI
http://www.aigei.com/game-code/code/?order=last&page=141 游戏
发布超级麻将AI Suphx一个月后,我们收集了10个大家最好奇的问题 https://www.msra.cn/zh-cn/news/features/suphx-faq
麻将Ai设计思路(go语言实现) https://blog.csdn.net/ywloveb/article/details/88171832?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
https://www.17sucai.com/pins/tag/3299.html?p=8 游戏源码
CocosCreator接入穿山甲广告3-底部banner https://blog.csdn.net/qq_34772097/article/details/101475793
Cocos Creator 如何在 VideoPlayer 上面放置 UI 控件 https://worthatry.cn/cocos-creator-ru-he-shi-bei-jing-tou-ming/
Cocos Creator Android 原生启动优化系列 2 —— 自定义启动页 https://www.jianshu.com/p/21d269c8ef09
Cocos Creator教程:访问网页 https://www.meiwen.com.cn/subject/nrerzxtx.html
CocosCreator+JavaWeb实现URL加载网络图片 https://blog.csdn.net/yangshuaionline/article/details/101062203
cocos Creator添加视频并且自动播放循环播放 https://www.jianshu.com/p/16710f109ce6
https://www.ctolib.com/mathjs.html JS
cocos Creator添加视频并且自动播放循环播放 https://www.jianshu.com/p/16710f109ce6
CocosCreator 中如何下载文件 https://blog.csdn.net/nick_li_/article/details/81353070
cocos creator 实现加载远程资源到本地缓存 https://blog.csdn.net/lck8989/article/details/81021416
https://github.com/zuoge85/OpenMajiang 麻将
解决CocosCreator 在微信小游戏中使用Socket.io 报错的问题 http://www.bubuko.com/infodetail-2592943.html?__cf_chl_jschl_tk__=0a03bd1359d0f7624d5af8858534ceffe5f5e088-1584926437-0-AaITg9Dtu94L0GPQEyt_br1ulWCxPXrMzopS-q22GiWQpmmpsTukXB4M5rosiewTpH0T0YrsdWWdpDayXGuJt9bU8FnXvOir19y_TRL44iNlL2rCgrtOf79EwqaJvJSyptm2ux9UvegU82A1FW2swhuV2AcEJeeGFU0Y3vTCvKPRlZMtkTQ554QTtaq3_uNyVycJ0zHPUJId8WYPICnFHf4kGPksgpPLKvi33hGr6TN8GZvjNnTJapOf_dzK8gfjSYHrgCobV0kmyQVYE6bDdjHDjOEv2SJcIjjpqnzUn7ocxv0SHkt0aiz6Oxow0DvAPg
一种高效的麻将AI算法 https://zhuanlan.zhihu.com/p/53587053 https://mvnrepository.com/artifact/com.github.esrrhs/majiang_algorithm/1.0.15
Admob Unity广告插件详细接入流程介绍
2018-10-25 creator小技巧 CocosCreator 实现手机震动效果 https://www.jianshu.com/p/f5e2cfab96bf
cocoscreator 实现屏幕抖动效果 https://blog.csdn.net/weixin_41316824/article/details/85229112
安卓那些你不得不收藏的开源库 https://www.jianshu.com/p/906eb195d218
Vue.js 基本代码 https://www.jianshu.com/p/c9840c697400
Android 拉取第三方微信登入 https://www.jianshu.com/p/409e7990723f
Android应用在国外之各种广告集成(Vungle,AppLovin,Google,Facebook) https://blog.csdn.net/liuzhengisme/article/details/101687603
gradle.properties 有代理 需注销掉 不然无法拉库
Android Studio 在原有项目上NDK开发以及新建NDK开发项目 https://blog.csdn.net/qq_28535319/article/details/80164250
三人麻将 https://zh.wikipedia.org/wiki/%E4%B8%89%E4%BA%BA%E9%BA%BB%E5%B0%86
Mac上解决Chrome浏览器跨域问题 https://www.jianshu.com/p/2db73311fcbe
Japanese Riichi Mahjong AI agent https://github.com/search?q=mahjong
https://forum.cocos.org/t/topic/84344 游戏
【Android】播放音频的几种方式介绍 https://blog.csdn.net/wdd1324/article/details/80263235安卓播放音频文件
cameraComponent.camera.update()
麻雀のルールをまとめたもの https://github.com/tolymer/mahjong-rules
IOS-海外版登录授权分享 Google FaceBook Twitter Instagram 分享
cocos creator利用ShareSDK实现微信登录功能 https://blog.csdn.net/lck8989/article/details/80322329
RabbitGame 游戏 https://github.com/sstd521/RabbitGame/tree/master/assets
【Cocos Creator实战教程(13)】——播放声音
https://www.write-bug.com/article/1846.html
creator的声音播放真是垃圾的一 https://www.jianshu.com/p/7eaa603dc7da
Cocos Creator接入谷歌广告AdMob详细教程(原创) https://www.jianshu.com/writer#/notebooks/5267910/notes/55455241
启用ARCore https://developers.google.com/ar/develop/java/enable-arcore?hl=zh-cn
800+页《Creator 星球游戏开发社区教程精华2017.9~2019.9》,两年精华 PDF 电子书今天出炉!免费开送,另有惊喜... https://mp.weixin.qq.com/s/6gZvE9HhLdKnulf2lxzI9w
手动添加x86_64无法编译成功2.0也没有x86_64这个选项是不是都不支持?目前我使用的是1.10.3版本.无法编译成功 https://forum.cocos.org/t/creator-x86-64/82317
战斗界面 DebugGame 开启Debug 模式 Game 正式战斗模式
dscacheutil -flushcache 刷新DNS
npm install安装第三方库
lipo -thin arm64 -output libavcodec.64 libavcodec 提取64位库
cocos creator 使用第三方包 https://www.jianshu.com/p/52bc6d144d09