Esempio n. 1
0
 public Form1()
 {
     espacio = 10;
     InitializeComponent();
     juego  = canva.CreateGraphics();
     cabeza = new cola(10, 10);
     comida = new comida();
 }
Esempio n. 2
0
 public void meter()
 {
     if (siguiente == null)
     {
         siguiente = new cola(this.x, this.y);
     }
     else
     {
         siguiente.meter();
     }
 }
Esempio n. 3
0
 public void findeJuego()
 {
     xdir        = 0;
     ydir        = 0;
     puntaje     = 0;
     puntos.Text = "0";
     ejex        = true;
     ejey        = true;
     cabeza      = new cola(10, 10);
     comida      = new comida();
     MessageBox.Show("Perdiste");
 }
Esempio n. 4
0
 public cola(int x, int y)
 {
     this.x    = x;
     this.y    = y;
     siguiente = null;
 }