예제 #1
0
파일: GameScreen.cs 프로젝트: Choochoo/Ship
 protected GameScreen(GameScreenManager gameScreenManager)
 {
     GameScreenManager = gameScreenManager;
 }
예제 #2
0
파일: MainGame.cs 프로젝트: Choochoo/Ship
        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();
        }