()
| 511 | } |
| 512 | |
| 513 | private runSplashScreen(): boolean{ |
| 514 | // If the timer is >= 0 |
| 515 | if(this.splashScreenTimer >= 0){ |
| 516 | // Reduce the timer |
| 517 | this.splashScreenTimer -= 1; |
| 518 | } |
| 519 | // Else |
| 520 | else{ |
| 521 | // Switch to the next step |
| 522 | this.goToMainMenu(); |
| 523 | } |
| 524 | |
| 525 | // We can't end the game during the splash screen |
| 526 | return false; |
| 527 | } |
| 528 | } |