()
| 371 | } |
| 372 | |
| 373 | private runSplashScreen(): boolean{ |
| 374 | // If the timer is >= 0 |
| 375 | if(this.splashScreenTimer >= 0){ |
| 376 | // Reduce the timer |
| 377 | this.splashScreenTimer -= 1; |
| 378 | } |
| 379 | // Else |
| 380 | else{ |
| 381 | // Switch to the next step |
| 382 | this.goToGame(); |
| 383 | } |
| 384 | |
| 385 | // We can't end the game during the splash screen |
| 386 | return false; |
| 387 | } |
| 388 | |
| 389 | private shipCollidesWithThisPos(pos: Pos): boolean{ |
| 390 | if(pos.x < 0) |