コード例 #1
0
ファイル: MainGame.cs プロジェクト: szlatyka/Sharpex2D
 /// <summary>
 ///     Updates the background.
 /// </summary>
 /// <param name="gameTime">The GameTime.</param>
 private void UpdateBackground(GameTime gameTime)
 {
     if (!_isDead)
     {
         _animatedBackground.Update(gameTime);
     }
 }
コード例 #2
0
        protected override void OnUpdateFrame(FrameEventArgs e)
        {
            base.OnUpdateFrame(e);
            // Update UI
            refreshButton.Update(MouseState);
            exitButton.Update(MouseState);
            tomorrowIoData?.Update(MouseState);
            openWeatherMapData?.Update(MouseState);

            // Update Background
            oTime += (float)e.Time;
            bg.Update(this, oTime);
        }