Exemple #1
0
 public void UpdateLevel(Controles controles, List <Animate> anim, ContentManager Content)
 {
     if (experience > (int)(Math.Pow(1.5, niveau) * Math.PI * 100))
     {
         experience -= (int)(Math.Pow(1.5, niveau) * Math.PI * 100);
         niveau++;
         pointRestants += 5;
         money         += (int)(Math.Pow(1.2, niveau) * 783);
         anim.Add(new Animate(new Texture2D[1] {
             Tools.LoadTexture("Others/LevelUp", Content)
         }, position, new Vector2(0, -2), 200, 100, true));
     }
     if (Player1Events.killplayer0 > oldkill)
     {
         experience += 50;
         money      += 50;
     }
     oldkill = Player1Events.killplayer0;
     if (controles.God())
     {
         if (God)
         {
             God = false;
         }
         else
         {
             God = true;
         }
     }
 }