Exemplo n.º 1
0
        /// <summary>
        /// Method to draw the content on the gameplay screen
        /// </summary>
        /// <param name="gameTime">the elapsed time of the game</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            _spriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, globalTransformation);
            level.Draw(gameTime, _spriteBatch);
            DrawHud();
            _spriteBatch.End();

            base.Draw(gameTime);
        }