public GameSession() { Current = this; Content.RootDirectory = "Content"; Item.Initialize(); Cutscene.LoadFromFile(); screenManager = new ScreenManager(this); fpsCounter = new FrameRateCounter(this); graphics = new GraphicsDeviceManager(this); Resolution.Init(ref graphics); #if XBOX Resolution.SetResolution(this.Window.ClientBounds.Width, this.Window.ClientBounds.Height, true); #else //Resolution.SetResolution(1920, 1080, true); Resolution.SetResolution(1280, 720, false); #endif Resolution.SetVirtualResolution(1280, 720); Components.Add(screenManager); //Components.Add(fpsCounter); }
public static void Load(ScreenManager screenManager, bool loadingIsSlow, PlayerIndex? controllingPlayer, params GameScreen[] screensToLoad) { foreach (GameScreen screen in screenManager.GetScreens()) screen.ExitScreen(); LoadingScreen loadingScreen = new LoadingScreen(screenManager, loadingIsSlow, screensToLoad); screenManager.AddScreen(loadingScreen, controllingPlayer); }
private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; }