Beispiel #1
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 public void Draw(SpriteBatch spriteBatch, GameTime gameTime)
 {
     try {
         parallax.draw(spriteBatch);
         frameTable.draw(spriteBatch);
         playerIndicator.draw(spriteBatch);
         frameHand.draw(spriteBatch);
         frameBid.draw(spriteBatch);
         frameScoreboard.draw(spriteBatch);
         frameEndgame.draw(spriteBatch);
     } catch (InvalidOperationException) {
         Console.WriteLine("CONCURRENT ACCESS WHILE DRAWING");
         Draw(spriteBatch, gameTime);
         return;
     }
 }
Beispiel #2
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 public void Draw(SpriteBatch spriteBatch, GameTime gameTime)
 {
     //Draw code goes here. Don't change this spriteBatch!
     frameHand.draw(spriteBatch);
     DebugGUI.info(spriteBatch, font22pt, gameTime);
 }