initEngine() {
        this.log('init engine')
        const surface = this._screen.surface;       // getting the surface a.k.a the rendering canvas
        const engine = new Engine();             // create an engine instance
        engine.config.cameraThinker = this._options.cameraThinker;
        engine.useThinkers(this._options.thinkers);
        engine.setRenderingCanvas(surface);         // configure the engine, so it uses our canvas
        engine.events.on('level.loading', ({phase, progress}) => this.progressFunction(phase, progress));
        this._engine = engine;                      // keeping updateEntity of the engine instance
        return this;
    }
/**
     * engine initialisation
     * @return {GameAbstract}
     */
engine initialisation
@return {GameAbstract}
engine initialisation @return { GameAbstract }
initEngine() {
        this.log('init engine')
        const surface = this._screen.surface;       
        const engine = new Engine();             
        engine.config.cameraThinker = this._options.cameraThinker;
        engine.useThinkers(this._options.thinkers);
        engine.setRenderingCanvas(surface);         
        engine.events.on('level.loading', ({phase, progress}) => this.progressFunction(phase, progress));
        this._engine = engine;                      
        return this;
    }
initEngine ( ) { this . log ( 'init engine' ) const surface = this . _screen . surface ; const engine = new Engine ( ) ; engine . config . cameraThinker = this . _options . cameraThinker ; engine . useThinkers ( this . _options . thinkers ) ; engine . setRenderingCanvas ( surface ) ; engine . events . on ( 'level.loading' , ( { phase , progress } ) => this . progressFunction ( phase , progress ) ) ; this . _engine = engine ; return this ; }
engine initialisation
 @return {GameAbstract}
engine initialisation @return { GameAbstract }
// getting the surface a.k.a the rendering canvas // create an engine instance // configure the engine, so it uses our canvas // keeping updateEntity of the engine instance