Exemple #1
0
 private void UpdateMetal()
 {
     if (this.MetalTimer == MarioConfig.MetalDuration)
     {
         MarioConfig.SetMetalMarioSpeed();
     }
     if (this.MetalTimer > 0)
     {
         this.MetalTimer--;
     }
     if (this.MetalTimer <= 0 && this.CurrentState.PowerLevel() == MarioPowerLevel.Metal)
     {
         this.RespondToRequest(MarioActionRequest.GoFire);
         MarioConfig.SetNormalMarioSpeed();
     }
 }
Exemple #2
0
 public void ResetLevel()
 {
     if (GameStats.Lives < 0)
     {
         this.MenuDisplaying   = true;
         GameStats.Points      = 0;
         GameStats.Lives       = 1;
         this.LevelBeingPlayed = 0;
         this.ResetCurrentLevel();
     }
     else
     {
         ResetCurrentLevel();
     }
     MarioConfig.SetNormalMarioSpeed();
 }