升级的最新3D版本微信小游戏启动不了

找到最早的报错,看上去是 ammo 没加载,确定项目配置中物理选择的是不是 ammo,有没有打包出去

if (sys.platform == sys.WECHAT_GAME) {
this.platform = new PlatformWxGame(this);
} else if (sys.platform == sys.IPHONE) {
this.platform = new PlatformNativeIos(this);
} else if (sys.platform == sys.ANDROID) {
this.platform = new PlatformNativeAndroid(this);
} else {
this.platform = new PlatformWeb(this);
}
用了上面方法就会报错
直接使用下面方式就不会
this.platform = new PlatformWxGame(this);
另外空工程3.0.0 使用3D模块 微信小游戏包都用5000kb这怎么玩?

不太明白你的意思,具体报错的代码在哪里?是项目代码吗?

包含 3d 模块的话,微信小游戏一定要用 release 模式打包

用了这个判断就会出现报错很奇怪
不过我现在已经解决了
大年初一在回贴,太给力,新年快乐,祝cocos越来越好