mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
Merge pull request #647 from nantas/master
add group and collide map to cc.game
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user