示例#1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            screen = screens.Splash;
            screen.Load(GraphicsDevice);
        }
示例#2
0
        /// <summary>
        /// TODO
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void GotSearchResult(object sender, OpenReadCompletedEventArgs e)
        {
            Texture2D defaultImage = Helper.LoadTextureStream("Content\\gpsloading", GraphicsDevice);
            Texture2D unavailableImage = Helper.LoadTextureStream("Content\\noImage", GraphicsDevice);
            bingMapsViewer = new BingMapsViewer(BingAppKey, defaultImage, unavailableImage,
                        startingCoordinate, 5, ZoomLevel, spriteBatch);
            ReceivedLocationCoordinates(sender, e);

            screen = screens.Playing;
            screen.Load(GraphicsDevice);
        }