build/app.js
/**
   * Creates a bonus fruit for ten seconds
   */
Creates a bonus fruit for ten seconds
Creates a bonus fruit for ten seconds
createFruit() {
    this.removeTimer({ detail: { timer: this.fruitTimer } });
    this.fruit.showFruit(this.fruitPoints[this.level] || 5000);
    this.fruitTimer = new Timer(() => {
      this.fruit.hideFruit();
    }, 10000);
  }
createFruit ( ) { this . removeTimer ( { detail : { timer : this . fruitTimer } } ) ; this . fruit . showFruit ( this . fruitPoints [ this . level ] || 5000 ) ; this . fruitTimer = new Timer ( ( ) => { this . fruit . hideFruit ( ) ; } , 10000 ) ; }
Creates a bonus fruit for ten seconds
Creates a bonus fruit for ten seconds