Ejemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GameOverScreen(int previousScore, Screen replayScreen)
     : base("Game Over",Color.Red)
 {
     IsPopup = true;
     this.replayScreen = replayScreen;
     this.previousScore = previousScore;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }