MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / runSplashScreen

Method runSplashScreen

code/main/GalacticWars.ts:373–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

runMethod · 0.95

Calls 1

goToGameMethod · 0.95

Tested by

no test coverage detected