Esempio n. 1
0
        public static void Push(Screen screen)
        {
            if (Screens.Count > 0)
            {
                Screens.Peek().Active = false;
            }

            screen.LoadContent();
            screen.Active = true;
            Screens.Push(screen);
        }
Esempio n. 2
0
        public SuperPolarity()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Components.Add(new GamerServicesComponent(this));

            graphics.PreferMultiSampling = true;
            graphics.PreferredBackBufferHeight = 720;
            graphics.PreferredBackBufferWidth = 1280;
            //graphics.ToggleFullScreen();

            Content.RootDirectory = "Content";
            ActorFactory.SetGame(this);
            ParticleEffectFactory.SetGame(this);
            ActorManager.SetGame(this);
            ScreenManager.SetGame(this);

            EntryScreen = (Screen)new TitleScreen(this);
        }