Ejemplo n.º 1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            g_spriteBatch.Begin();

            if (!g_Deck.EmptyDeck())
            {
                g_Deck.DrawCard(g_spriteBatch, new Card(13, 0), new Vector2(10, 10));
            }

            gB_High.Draw(g_spriteBatch);
            gB_Low.Draw(g_spriteBatch);
            gB_RQ.Draw(g_spriteBatch);

            g_Deck.DrawDrawnCards(g_spriteBatch);

            g_Scoreboard.Draw(g_spriteBatch, font_Arial);

            g_spriteBatch.DrawString(font_Arial, "High:", new Vector2(screenWidth - 160, 40), Color.BlanchedAlmond);
            g_spriteBatch.DrawString(font_Arial, "Low:", new Vector2(screenWidth - 160, 110), Color.BlanchedAlmond);
            g_spriteBatch.DrawString(font_Arial, "RQ:", new Vector2(screenWidth - 160, 180), Color.BlanchedAlmond);

            g_Deck.DrawCard(g_spriteBatch, g_cCard, g_cCardPos);

            g_spriteBatch.End();

            base.Draw(gameTime);
        }