Guest User

Untitled

a guest
Jul 31st, 2012
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using Microsoft.Xna.Framework;
  7. using Microsoft.Xna.Framework.Graphics;
  8. using Microsoft.Xna.Framework.Content;
  9.  
  10.  
  11. namespace Pong
  12. {
  13.     class DebuggingTools
  14.     {
  15.  
  16.         GraphicsDevice graphicsDevice;
  17.         SpriteBatch spriteBatch;
  18.         ContentManager contentManager;
  19.         SpriteFont arial;
  20.         SpriteFont gameFont;
  21.         GameplayScreen gameplayScreen;
  22.         GameTime gameTime;
  23.  
  24.         /// <summary>
  25.         /// Constructor
  26.         /// </summary>
  27.         public DebuggingTools()
  28.         {
  29.         }
  30.  
  31.         public void LoadContent(ContentManager contentManager)
  32.         {
  33.             arial = contentManager.Load<SpriteFont>(@"gfx/fonts/Arial");
  34.         }
  35.  
  36.         public void Draw(SpriteBatch spriteBatch)
  37.         {
  38.             //disableTurboCooldown
  39.             spriteBatch.DrawString(arial, string.Format("DTCooldown: {0}", gameplayScreen.disableTurboCooldown),
  40.             new Vector2(20, 60), Color.White);
  41.  
  42.             //twoSecondBurst
  43.             spriteBatch.DrawString(arial, string.Format("2SecBurst: {0}", gameplayScreen.twoSecondBurst),
  44.             new Vector2(20, 80), Color.White);
  45.  
  46.             //fiveSecondCoolDown
  47.             spriteBatch.DrawString(arial, string.Format("5SecCD: {0}", gameplayScreen.fiveSecondCoolDown),
  48.             new Vector2(20, 1000), Color.White);
  49.  
  50.             //CoolDown
  51.             spriteBatch.DrawString(arial, string.Format("CoolDown: {0}", gameplayScreen.coolDown),
  52.             new Vector2(20, 120), Color.White);
  53.  
  54.         }
  55.  
  56.         public void Update(GameTime gameTime)
  57.         {
  58.         }
  59.  
  60.     }
  61. }
RAW Paste Data