Ejemplo n.º 1
0
 /// <summary>
 /// Draws the scene.
 /// </summary>
 /// <param name="spriteBatch">The spriteBatch.</param>
 /// <param name="gameTime">The GameTime.</param>
 public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
 {
     _skyBox.Draw(spriteBatch, gameTime);
     _entityComposer.Draw(spriteBatch, gameTime);
     if (!_debugDisplay.Visible)
     {
         _scoreBoard.Draw(spriteBatch, gameTime);
     }
     _minimap.Draw(spriteBatch, gameTime);
     _debugDisplay.Draw(spriteBatch, gameTime);
     _blackBlend.Draw(spriteBatch, gameTime);
     UIManager.Draw(spriteBatch, gameTime);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Draws the Scene.
 /// </summary>
 /// <param name="spriteBatch">The spriteBatch.</param>
 /// <param name="gameTime">The GameTime.</param>
 public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
 {
     _skyBox.Draw(spriteBatch, gameTime);
     _fadeableText1.Draw(spriteBatch, gameTime);
     if (_fadeableText1.AnimationComplete)
     {
         _fadeableText2.Draw(spriteBatch, gameTime);
         if (_fadeableText2.AnimationComplete)
         {
             _fadeableText3.Draw(spriteBatch, gameTime);
             if (_fadeableText3.AnimationComplete)
             {
                 _blackBlend.Draw(spriteBatch, gameTime);
             }
         }
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Draws the Scene.
        /// </summary>
        /// <param name="spriteBatch">The spriteBatch.</param>
        /// <param name="gameTime">The GameTime.</param>
        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            spriteBatch.DrawTexture(_background, _backgroundPosition);
            Vector2 dim =
                spriteBatch.MeasureString(
                    string.Format("score: {0}", _finalScore), _font);
            Vector2 dim2 = spriteBatch.MeasureString("Press {Enter} to continue", _font2);
            Vector2 dim3 = spriteBatch.MeasureString(
                string.Format("(Achievement multiplier {0}x)", _achievmentMultiplier), _font3);

            spriteBatch.DrawString(
                string.Format("score: {0}", _finalScore), _font,
                new Vector2(400 - dim.X / 2, 300), Color.White);
            spriteBatch.DrawString(string.Format("(Achievement multiplier {0}x)", _achievmentMultiplier), _font3,
                                   new Vector2(400 - dim3.X / 2, 350), Color.White);
            spriteBatch.DrawString("Press {Enter} to continue", _font2, new Vector2(400 - dim2.X / 2, 420), Color.White);
            _blackBlend.Draw(spriteBatch, gameTime);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Draws the Scene.
 /// </summary>
 /// <param name="spriteBatch">The spriteBatch.</param>
 /// <param name="gameTime">The GameTime.</param>
 public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
 {
     spriteBatch.DrawTexture(_menuBackground, _menuPosition);
     UIManager.Draw(spriteBatch, gameTime);
     _blackBlend.Draw(spriteBatch, gameTime);
 }