PhysicalEngine.initialize = function () {
this.registerTypes = {};
this.context = {};
this.constructors = {};
this.runner = {};
//this.defaultType = "matter";
//由于BOX2D插件还未成熟,暂时只可通过代码方式修改切换。
this.defaultType = "box2d";
this.spriteConstructorLength = 0;
}
PhysicalEngine.initialize = function () {
this.registerTypes = {};
this.context = {};
this.constructors = {};
this.runner = {};
//this.defaultType = "matter";
//由于BOX2D插件还未成熟,暂时只可通过代码方式修改切换。
this.defaultType = "box2d";
this.spriteConstructorLength = 0;
}