厦门暗游网络科技有限公司
  • 首页
  • 关于我们
  • 开发笔记
  • Cocos
  • Unity
  • 读书
  • Privacy
  • StayTab
微信公众号:耿直的IT男阿斌
10 April 2018 / 开发笔记

Egret发布小游戏报错:p2 is not defined

参考

http://bbs.egret.com/thread-45982-1-1.html

解决方法

修改小游戏工程中 js/physics.js文件,在第24行左右位置

       module.exports = a();

后添加

       window.p2 = a();

如下:

 !function (a) { if ("object" == typeof exports)
     {
       module.exports = a();
       window.p2 = a();
     }

Snip20180410_7

阿斌

Read more posts by this author.

Read More

扫一扫关注微信公众号:耿直的IT男阿斌

微信公众号:耿直的IT男阿斌

聊一聊IT男眼中的世界

— 厦门暗游网络科技有限公司 —

开发笔记

  • 如何为Docusaurus站点接入AdSense广告SDK
  • 不小心误commit超大文件到git,怎么办?
  • 从Prometheus居然不能填充mock数据说起
See all 195 posts →
ghost

感谢Gitment,可以评论了

使用gitment做为ghost的评论系统

影子工作室
开发笔记

如何在MySQL中保存emoji表情图标?

在各种社交账号中的昵称中添加表情的人越来越多了。如果你以为用utf8编码保存文本就万事大吉了,那就等着看各种奇奇怪怪的问题吧。

阿斌
厦门暗游网络科技有限公司 icon 厦门暗游网络科技有限公司
—
Egret发布小游戏报错:p2 is not defined
关注微信公众号:耿直的IT男阿斌
Share this
厦门暗游网络科技有限公司 © 2025 闽ICP备17029130号
Latest Posts Facebook Twitter Ghost
More Indies: Kevin (Game Dev) John Wilson (App Dev)