Beispiel #1
0
 public static void LoadContent(Microsoft.Xna.Framework.Content.ContentManager Content)
 {
     foreach (MiniGame minigame in minigames)
     {
         minigame.LoadContent(Content);
     }
     TransitionScreen.LoadContent(Content);
     Transition();
 }
        public static void Transition()
        {
            if (life_counter > 0)
            {
                next.Play();
            }
            int life_time = 2000;

            TransitionScreen.Transition(life_counter, score, life_time);
        }
 public static void Draw(SpriteBatch spriteBatch)
 {
     if (!TransitionScreen.is_over)
     {
         TransitionScreen.Draw(spriteBatch);
     }
     else
     {
         currentMiniGame.Draw(spriteBatch);
     }
 }
 public static void Update(GameTime gameTime)
 {
     if (!TransitionScreen.is_over)
     {
         TransitionScreen.Update(gameTime);
     }
     else
     {
         currentMiniGame.Update(gameTime);
     }
 }
        } = 4000;                                                  // Limit of time in ms, will decrease over time

        public static void LoadContent(Microsoft.Xna.Framework.Content.ContentManager Content)
        {
            foreach (MiniGame minigame in minigames)
            {
                minigame.LoadContent(Content);
            }
            TransitionScreen.LoadContent(Content);
            r        = new Random();
            gameover = Content.Load <SoundEffect>("music/gameover");
            next     = Content.Load <SoundEffect>("music/next");
            Transition();
        }
Beispiel #6
0
        public static void Transition()
        {
            int life_time = 2000;

            TransitionScreen.Transition(life_counter, score, life_time);
        }