예제 #1
0
 public Form1()
 {
     InitializeComponent();
     cabeza = new cola(10, 10);
     comida = new comida();
     g      = canvas.CreateGraphics();
 }
예제 #2
0
 public void finJuego()
 {
     temporalScore   = 0;
     vel             = 0;
     Velocidad.Text  = "0";
     puntaje         = 0;
     Puntos.Text     = "0";
     ejeX            = true;
     ejeY            = true;
     xDir            = 0;
     yDir            = 0;
     cabeza          = new cola(10, 10);
     comida          = new comida();
     timer1.Interval = 100;
     MessageBox.Show("Fin del juego");
 }