Beispiel #1
0
        public MechadroneGame()
        {
            mGraphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            mGraphics.PreferredBackBufferWidth = GameOptions.ScreenWidth;
            mGraphics.PreferredBackBufferHeight = GameOptions.ScreenHeight;
            mGraphics.PreferMultiSampling = false;

            mScreenMan = new ScreenManager(this);
            Components.Add(mScreenMan);
            SharedResources.GamerServices = new GamerServicesComponent(this);
            Components.Add(SharedResources.GamerServices);

            // Prime the ScreenManager with the first set of screens:
            mScreenMan.AddScreen(new BackgroundScreen(), null);
            mScreenMan.AddScreen(new MainMenuScreen(), null);

            #if PROFILE
                this.IsFixedTimeStep=false;
                graphics.SynchronizeWithVerticalRetrace = false;
            #endif
        }