Пример #1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

#if DEBUG
            MediaPlayer.Stop();
            MediaPlayer.Play(ContentChest.GameMusic);
            ContentChest.BasicLoad();
            ContentChest.Load();
            RequestScreenChange(new GameScreen(ContentChest.Maps.Count));
#else
            ContentChest.BasicLoad();
            RequestScreenChange(new SplashScreen());
#endif
        }
Пример #2
0
        protected override void Initialize()
        {
            ContentChest.Initialize(Content);

            Window.Title = GameProperties.Title;

            Randomizer.Initialize(2556);

            _weatherManager = new WeatherManager(new HttpClient(), ApiKey);
            var weatherInformation = _weatherManager.GetWeatherInformation();

            _notifyManager = new NotifyManager();
            _screenManager = new ScreenManager();

            InputManager.OnGamePadConnected    += OnGamePadConnected;
            InputManager.OnGamePadDisconnected += OnGamePadDisconnected;

            base.Initialize();
        }