MrGravity.MrGravityMain.Initialize C# (CSharp) Method

Initialize() protected method

Allows the game to perform any initialization it needs to before starting to run. This is where it c5an query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
return void
        protected override void Initialize()
        {
            //COMMENT OUT AFTER TESTING TRIAL MODE
            //Guide.SimulateTrialMode = true;

            Graphics.PreferredBackBufferWidth = 1280;
            Graphics.PreferredBackBufferHeight = 720;
            //Graphics.ToggleFullScreen();// REMEMBER TO RESET AFTER DEBUGGING!!!!!!!!!
            Graphics.ApplyChanges();

            _mTitle = new Title(_mControls, Graphics);
            _mMainMenu = new MainMenu(_mControls, Graphics);
            _mWorldSelect = new WorldSelect(_mControls, Graphics);

            _mPause = new Pause(_mControls);
            _mCredits = new Credits(_mControls, Graphics);
            _mOptions = new Options(_mControls, Graphics);
            _mAfterScore = new AfterScore(_mControls);
            _mResetConfirm = new ResetConfirm(_mControls);
            _mStartLevelSplash = new StartLevelSplash(_mControls);

            _mPreScore = new PreScore(_mControls);
            _mScoring = new Scoring(_mControls);

            _mController = new Controller(_mControls, Graphics);
            _mSoundOptions = new SoundOptions(_mControls, Graphics);
            _mPurchaseScreenSplash = new PurchaseScreenSplash(_mControls, Graphics);
            _mWorldPurchaseScreenSplash = new WorldPurchaseSplash(_mControls, Graphics);

            _mSpriteBatch = new SpriteBatch(Graphics.GraphicsDevice);
            base.Initialize();

            Components.Add(new GamerServicesComponent(this));
        }