コード例 #1
0
ファイル: Game.cs プロジェクト: vitaly-kobzev/WindowsGSM1
        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);
        }
コード例 #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);
        }