Beispiel #1
0
        public void Update(GameTime gameTime)
        {
            level.Update(gameTime);
            overlay.Update(gameTime);

            elapsedTime = elapsedTime.Add(gameTime.ElapsedGameTime);

            timerUI.Text = elapsedTime.Minutes + ":" + elapsedTime.Seconds.ToString("00");
        }
Beispiel #2
0
 public void Update(GameTime gameTime)
 {
     level.Update(gameTime);
     overlay.Update(gameTime);
 }
Beispiel #3
0
 public void Update(GameTime gameTime)
 {
     MenuContainer.Update(gameTime);
 }
Beispiel #4
0
 public void Update(GameTime gameTime)
 {
     overlay.Update(gameTime);
     //Changes the sound level (everywhere, not only in the settingsmenu) when the slider is moved
     SoundEffect.MasterVolume = (float)slider.Value / 100;
 }