Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 static void Main()
 {
     using (var game = new SwitchGame())
         game.Run();
 }