Beispiel #1
0
 public void CreateCendre()
 {
     if (this.Watch.ElapsedMilliseconds % 1000 == 0)
     {
         Cendre c = new Cendre(this.Rnd.Next(0, this.View.Right - this.View.Left), 0, this.Rnd.Next(0, this.View.Right - this.View.Left), this.View.Height - 40, 5000 + this.Rnd.Next(5000));
         this.Cendres.Add(c);
     }
 }
Beispiel #2
0
 public void CreateCendre()
 {
     if (this.Watch.ElapsedMilliseconds % 1000 == 0)
     {
         Cendre c = new Cendre(this.Rnd.Next(0, this.View.Right - this.View.Left), 0, this.Rnd.Next(0, this.View.Right - this.View.Left), this.View.Height - 40, 5000 + this.Rnd.Next(5000));
         this.Cendres.Add(c);
     }
 }
 private void CreateCendre()
 {
     if (!gameInProgress)
     {
         Cendre c = new Cendre(rnd.Next(0, this.Right - this.Left), 0, rnd.Next(0, this.Right - this.Left), this.Height - 40, 5000 + rnd.Next(5000));
         cendres.Add(c);
     }
 }