diff --git a/cocos2d/core/CCGame.js b/cocos2d/core/CCGame.js index ad95eaa417..55a3af979f 100644 --- a/cocos2d/core/CCGame.js +++ b/cocos2d/core/CCGame.js @@ -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; }, diff --git a/jsb/jsb-game.js b/jsb/jsb-game.js index 3256f1b2d9..caaf37b3d5 100644 --- a/jsb/jsb-game.js +++ b/jsb/jsb-game.js @@ -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]);