예제 #1
0
 private void designObjekter(int number, int speed, Affector[] aff)
 {
     affector = aff;
     for (int i = 0; i < number; i++)
     {
         Ding ding = new Ding(rand.Next(speed), rand.Next(100), rand.Next(255), rand.Next(10), this, affector);
     }
 }
예제 #2
0
 private void designObjekter(int number, int speed)
 {
     objekter = new Ding[number];
     for (int i = 0; i < number; i++)
     {
         Ding ding = new Ding(rand.Next(speed), rand.Next((int)numericUpDown1.Value), rand.Next(255), (int)sizeDrops.Value, this);
         objekter[i] = ding;
     }
 }
예제 #3
0
 private void designObjekter(int number, int speed, Affector aff)
 {
     affector = aff;
     objekter = new Ding[number];
     for (int i = 0; i < number; i++)
     {
         Ding ding = new Ding(rand.Next(speed), rand.Next(100), rand.Next(200), rand.Next(30), this, affector);
         objekter[i] = ding;
     }
 }