Пример #1
0
 static void Main()
 {
     Dov          = new SlideSprite(Properties.Resources.Dov);
     Dov.TargetX  = 100;
     Dov.TargetY  = 100;
     Dov.Velocity = 5;
     Program.parent.add(Dov);
     Application.Run(new Program());
 }
Пример #2
0
 public Engine()
 {
     InitializeComponent();
     DoubleBuffered = true;
     form           = this;
     elephant       = new SlideSprite(img);
     elephant.tx    = 100;
     elephant.ty    = 100;
     elephant.v     = 5;
     sp.add(elephant);
     thread  = new Thread(new ThreadStart(render));
     thread2 = new Thread(new ThreadStart(update));
     thread.Start();
     thread2.Start();
 }