Exemplo n.º 1
0
        private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow,
                              GameScreen[] screensToLoad)
        {
            this.loadingIsSlow = loadingIsSlow;
            this.screensToLoad = screensToLoad;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
        }
Exemplo n.º 2
0
        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);
        }
        public Silhouetta()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            //apparently for 1280p

            //this.graphics.PreferredBackBufferWidth = 1920;
            //this.graphics.PreferredBackBufferHeight = 1280;
            this.graphics.PreferredBackBufferWidth = 1280;
            this.graphics.PreferredBackBufferHeight = 720;

            //graphics.ToggleFullScreen();

            screenManager = new ScreenManager(this);
            gamerServicesComponent = new GamerServicesComponent(this);
            emitterSystem = new ParticleSystem(this, "EmitterSettings") { DrawOrder = ParticleSystem.AlphaBlendDrawOrder };

            Components.Add(emitterSystem);
            Components.Add(screenManager);
            Components.Add(gamerServicesComponent);

            screenManager.AddScreen(new StartScreen(emitterSystem), null);
        }