Ejemplo n.º 1
0
 protected GameScreen(GameScreenManager gameScreenManager)
 {
     GameScreenManager = gameScreenManager;
 }
Ejemplo n.º 2
0
        protected override void LoadContent()
        {
            var interfaceTexture = MainGame.ContentLoader.Load<Texture2D>("Screens/Shared/interface");
            var interfaceAtlas = MainGame.ContentLoader.Load<TextureAtlas>("Screens/Shared/interfaceJSON");

            _screenManager = new GameScreenManager();
            //_screenManager.Push(new WelcomeScreen(_screenManager, interfaceTexture, interfaceAtlas));
            _screenManager.Push(new PlayScreen(_screenManager, interfaceTexture, interfaceAtlas));

            if (!GamerServicesDispatcher.IsInitialized)
                GamerServicesDispatcher.Initialize(Services);

            if (!Guide.IsVisible)
                StorageDevice.BeginShowSelector(GetStorageDeviceResult, "getResult");

            FpsFont = ContentLoader.Load<SpriteFont>("Fonts/FPSFont");

            GC.Collect();
        }