Beispiel #1
0
 public Worm()
 {
     Position = InitialList();
     InitializeComponent();
     Velocity         = new MyVector(10 * rnd.NextDouble(), 10 * rnd.NextDouble());
     seed             = rnd.Next();
     _timer.AutoReset = true;
     _timer.Elapsed  += new ElapsedEventHandler(_timer_Elapsed);
     _timer.Start();
 }
Beispiel #2
0
 public Worm()
 {
     Position = InitialList();
     InitializeComponent();
     Velocity = new MyVector(10 * rnd.NextDouble(), 10 * rnd.NextDouble());
     seed = rnd.Next();
     _timer.AutoReset = true;
     _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
     _timer.Start();
     
 }