Guest User

Untitled

a guest
Aug 14th, 2012
23
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 Microsoft.Xna.Framework;
  5. using Microsoft.Xna.Framework.Audio;
  6. using Microsoft.Xna.Framework.Content;
  7. using Microsoft.Xna.Framework.GamerServices;
  8. using Microsoft.Xna.Framework.Graphics;
  9. using Microsoft.Xna.Framework.Input;
  10. using Microsoft.Xna.Framework.Media;
  11.  
  12.  
  13. namespace Pong
  14. {
  15.     public static class GlobalShare
  16.     {
  17.         public static bool IsGamepad;
  18.         public static PlayerIndex ControllingPlayer;
  19.  
  20.         public static GraphicsDeviceManager GraphicsDeviceManager;
  21.         public static GraphicsDevice GraphicsDevice;
  22.     }
  23. }
  24.  
  25.  
  26.  
  27.  
  28. public class Game1
  29. {
  30.     /// <summary>
  31.         /// The main game constructor.
  32.         /// </summary>
  33.         public Game1()
  34.         {
  35.             // initialize the content manager
  36.             Content.RootDirectory = "Content";
  37.  
  38.             // initialize the graphics device manager
  39.             graphics = new GraphicsDeviceManager(this);
  40.             GlobalShare.GraphicsDeviceManager = graphics;
  41.  
  42. ........
  43. }
RAW Paste Data