Ejemplo n.º 1
0
 public ScreenManager()
 {
     font = new Font();
     ImageFadeOut = new Image("fadeout", Vector2.Zero);
     Dimensions = new Vector2(640,480);
     currentScreen = new TittleScreen();
 }
Ejemplo n.º 2
0
 void Transition(GameTime time)
 {
     if (isTransitioning)
     {
         ImageFadeOut.update(time);
        // if (ImageFadeOut.Alpha == 1.0f)
        // {
             currentScreen.UnloadContent();
             currentScreen = newScreen;
             currentScreen.LoadContent();
         isTransitioning = false;
         //}
     }
 }