MrGravity.MrGravityMain.MrGravityMain C# (CSharp) Method

MrGravityMain() public method

Constructs a new game.
public MrGravityMain ( ) : System
return System
        public MrGravityMain()
        {
            Components.Add(new GamerServicesComponent(this));
            Graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            if (GamePad.GetState(PlayerIndex.One).IsConnected || GamePad.GetState(PlayerIndex.Two).IsConnected ||
                GamePad.GetState(PlayerIndex.Three).IsConnected || GamePad.GetState(PlayerIndex.Four).IsConnected)
                _mControls = new ControllerControl();
            else
                _mControls = new KeyboardControl();

            Graphics.GraphicsProfile = GraphicsProfile.HiDef;
            LevelLocation = "DefaultLevel.xml";
        }