Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Audio;
- using Microsoft.Xna.Framework.Content;
- using Microsoft.Xna.Framework.GamerServices;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework.Input;
- using Microsoft.Xna.Framework.Media;
- namespace Pong
- {
- public static class GlobalShare
- {
- public static bool IsGamepad;
- public static PlayerIndex ControllingPlayer;
- public static GraphicsDeviceManager GraphicsDeviceManager;
- public static GraphicsDevice GraphicsDevice;
- }
- }
- public class Game1
- {
- /// <summary>
- /// The main game constructor.
- /// </summary>
- public Game1()
- {
- // initialize the content manager
- Content.RootDirectory = "Content";
- // initialize the graphics device manager
- graphics = new GraphicsDeviceManager(this);
- GlobalShare.GraphicsDeviceManager = graphics;
- ........
- }
RAW Paste Data