Merge pull request #647 from nantas/master

add group and collide map to cc.game
This commit is contained in:
Wang Nan
2016-05-06 15:57:13 +08:00
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -581,6 +581,10 @@ var game = /** @lends cc.game# */{
// Scene parser
this._sceneInfos = this._sceneInfos.concat(config[CONFIG_KEY.scenes]);
// Collide Map and Group List
this.collideMap = config.collideMap;
this.groupList = config.groupList;
this.config = config;
},
+4
View File
@@ -240,6 +240,10 @@ cc.js.mixin(cc.game, {
config[CONFIG_KEY.showFPS] = (CONFIG_KEY.showFPS in config) ? (!!config[CONFIG_KEY.showFPS]) : true;
config[CONFIG_KEY.engineDir] = config[CONFIG_KEY.engineDir] || 'frameworks/cocos2d-html5';
// Group List and Collide Map
this.groupList = config.groupList;
this.collideMap = config.collideMap;
// Scene parser
this._sceneInfos = this._sceneInfos.concat(config[CONFIG_KEY.scenes]);