Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework.Content;
- namespace Pong
- {
- class DebuggingTools
- {
- GraphicsDevice graphicsDevice;
- SpriteBatch spriteBatch;
- ContentManager contentManager;
- SpriteFont arial;
- SpriteFont gameFont;
- GameplayScreen gameplayScreen;
- GameTime gameTime;
- /// <summary>
- /// Constructor
- /// </summary>
- public DebuggingTools()
- {
- }
- public void LoadContent(ContentManager contentManager)
- {
- arial = contentManager.Load<SpriteFont>(@"gfx/fonts/Arial");
- }
- public void Draw(SpriteBatch spriteBatch)
- {
- //disableTurboCooldown
- spriteBatch.DrawString(arial, string.Format("DTCooldown: {0}", gameplayScreen.disableTurboCooldown),
- new Vector2(20, 60), Color.White);
- //twoSecondBurst
- spriteBatch.DrawString(arial, string.Format("2SecBurst: {0}", gameplayScreen.twoSecondBurst),
- new Vector2(20, 80), Color.White);
- //fiveSecondCoolDown
- spriteBatch.DrawString(arial, string.Format("5SecCD: {0}", gameplayScreen.fiveSecondCoolDown),
- new Vector2(20, 1000), Color.White);
- //CoolDown
- spriteBatch.DrawString(arial, string.Format("CoolDown: {0}", gameplayScreen.coolDown),
- new Vector2(20, 120), Color.White);
- }
- public void Update(GameTime gameTime)
- {
- }
- }
- }
RAW Paste Data