src/core/World.js
/**
	* Entry point for the game. It initializes the asset manager and then
	* starts to build the game environment.
	*
	* @return {World} A reference to this world object.
	*/
Entry point for the game. It initializes the asset manager and then
starts to build the game environment.

@return {World} A reference to this world object.
Entry point for the game . It initializes the asset manager and then starts to build the game environment . @return { World } A reference to this world object .
init() {
		this.assetManager = new AssetManager();
		this.assetManager.init().then( () => {
			this._initScene();
			this._initLevel();
			this._initEnemies();
			this._initPlayer();
			this._initControls();
			this._initUI();
			this._animate();
		} );
		return this;
	}
init ( ) { this . assetManager = new AssetManager ( ) ; this . assetManager . init ( ) . then ( ( ) => { this . _initScene ( ) ; this . _initLevel ( ) ; this . _initEnemies ( ) ; this . _initPlayer ( ) ; this . _initControls ( ) ; this . _initUI ( ) ; this . _animate ( ) ; } ) ; return this ; }
Entry point for the game.
Entry point for the game .