public SwitchGame() { Instance = this; Content.RootDirectory = "Content"; Graphics = new GraphicsDeviceManager(this); Graphics.PreferredBackBufferWidth = 1280; Graphics.PreferredBackBufferHeight = 720; Graphics.IsFullScreen = !DEBUG_MODE; // Create the screen manager component. screenManager = new ScreenManager(this); Components.Add(screenManager); if (DEBUG_MODE) { screenManager.AddScreen(new BackgroundScreen(), null); } else { screenManager.AddScreen(new LogoScreen(), null); } }
static void Main() { using (var game = new SwitchGame()) game.Run(); }