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();
}