Exemple #1
0
        public GameStateManagementGame()
        {
            Content.RootDirectory = "Content";

            managerFactory = new ManagerFactory();

            GameSettings.VideoSettings.VideoSettingsChanged += VideoSettings_VideoSettingsChanged;

            InitGraphicsDevice();

            // Create the screen manager component.
            screenManager = new Manager.ScreenManager(this);

            Components.Add(screenManager);

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);
        }
Exemple #2
0
        public GameStateManagementGame()
        {
            Content.RootDirectory = "Content";

            managerFactory = new ManagerFactory();

            GameSettings.VideoSettings.VideoSettingsChanged += VideoSettings_VideoSettingsChanged;

            InitGraphicsDevice();

            // Create the screen manager component.
            screenManager = new Manager.ScreenManager(this);

            Components.Add(screenManager);

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);
        }