src/core/AssetManager.js
/**
	* Loads all configurations from the backend.
	*
	* @return {AssetManager} A reference to this asset manager.
	*/
Loads all configurations from the backend.
@return {AssetManager} A reference to this asset manager.
Loads all configurations from the backend . @return { AssetManager } A reference to this asset manager .
_loadConfigs() {
		const loadingManager = this.loadingManager;
		const configs = this.configs;
		loadingManager.itemStart( 'levelConfig' );
		fetch( './config/level.json' )
			.then( response => {
				return response.json();
			} )
			.then( json => {
				configs.set( 'level', json );
				loadingManager.itemEnd( 'levelConfig' );
			} );
		return this;
	}
_loadConfigs ( ) { const loadingManager = this . loadingManager ; const configs = this . configs ; loadingManager . itemStart ( 'levelConfig' ) ; fetch ( './config/level.json' ) . then ( response => { return response . json ( ) ; } ) . then ( json => { configs . set ( 'level' , json ) ; loadingManager . itemEnd ( 'levelConfig' ) ; } ) ; return this ; }
Loads all configurations from the backend.
Loads all configurations from the backend .
// level config