微信小游戏
小菜希
这个作者很懒,什么都没留下…
展开
-
微信小程序带参数跳转到小游戏
小游戏的默认路径是 pages/index/indexwx.navigateToMiniProgram({ appId: 'wxef98a1fd370dd5ac', path:'pages/index/index?channcelCode=qiuqiu&goto=220', envVersion: 'develop', extraData:...原创 2018-11-23 19:37:53 · 5491 阅读 · 1 评论 -
微信小程序解密用户数据失败
应该先调用 wx.login取得code,再获取用户的信息,服务端去解密,这样就可以解密成功。原创 2018-11-29 10:34:18 · 7467 阅读 · 0 评论 -
微信小游戏中时间戳转日期
subtime就是秒数let currTime = wx.getPerformance().now(); let subTime = Math.ceil( (Math.ceil(currTime) - lastTime) / 1000000 ) ;原创 2018-12-12 10:36:51 · 1108 阅读 · 0 评论 -
js中第三方库lodash和async及moment的使用
import * as _ from 'lodash'import * as _async from 'async'import * as _moment from 'moment'import * as _md5 from 'md5'var log = console.logconst {ccclass, property} = cc._decorator;@ccclasse...原创 2019-01-04 16:06:39 · 1583 阅读 · 0 评论 -
使用nodejs反编译微信小游戏源码
首先上2个大佬的github这个是原版,不支持分包https://github.com/qwerty472123/wxappUnpacker这个据说支持分包,没测试,只支持mac系统https://github.com/larack8/wxappUnpacker.git安装方式首先当然是 clone 下来,然后到文件夹 执行// 安装依赖包npm i// 反编译node wuW...原创 2019-03-28 23:23:32 · 2373 阅读 · 0 评论 -
Cocos Creator 屏幕适配脚本
挂载在Scene上,预制体需要添加 Widget 组件/** * 画布适配策略 * note: * 1. 只能挂载画布节点 */let StrategyEnum = cc.Enum({ NONE: 0, AUTO: 1, FIT_WIDTH: 2, FIT_HEIGHT: 3, FIT_WIDTH_HEIGHT: 4,});cc.Cl...原创 2019-10-09 15:50:27 · 675 阅读 · 0 评论