/// <summary>
 /// Constructor.
 /// </summary>
 public GameOverScreen(int previousScore, Screen replayScreen)
     : base("Game Over",Color.Red)
 {
     IsPopup = true;
     this.replayScreen = replayScreen;
     this.previousScore = previousScore;
 }
예제 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GameWonScreen(int previousScore, Screen replayScreen, Screen nextScreen = null)
     : base("Game Won!", Color.LightSalmon)
 {
     IsPopup = true;
     this.replayScreen = replayScreen;
     this.nextScreen = nextScreen;
 }
예제 #3
0
        /// <summary>
        /// The constructor is private: loading screens should
        /// be activated via the static Load method instead.
        /// </summary>
        private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow,
            Screen[] screensToLoad)
        {
            this.loadingIsSlow = loadingIsSlow;
            this.screensToLoad = screensToLoad;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
        }