build/app.js
/**
   * Handle events related to the number of remaining dots
   */
Handle events related to the number of remaining dots
Handle events related to the number of remaining dots
dotEaten() {
    this.remainingDots -= 1;
    this.soundManager.playDotSound();
    if (this.remainingDots === 174 || this.remainingDots === 74) {
      this.createFruit();
    }
    if (this.remainingDots === 40 || this.remainingDots === 20) {
      this.speedUpBlinky();
    }
    if (this.remainingDots === 0) {
      this.advanceLevel();
    }
  }
dotEaten ( ) { this . remainingDots -= 1 ; this . soundManager . playDotSound ( ) ; if ( this . remainingDots === 174 || this . remainingDots === 74 ) { this . createFruit ( ) ; } if ( this . remainingDots === 40 || this . remainingDots === 20 ) { this . speedUpBlinky ( ) ; } if ( this . remainingDots === 0 ) { this . advanceLevel ( ) ; } }
Handle events related to the number of remaining dots
Handle events related to the number of remaining dots