Example #1
0
 public Form1()
 {
     InitializeComponent();
     map    = game.CreateGraphics();
     cabeza = new cuerpo(10, 10);
     comida = new Comida();
     inicio();
 }
 public void agregar()
 {
     if (siguiente == null)
     {
         siguiente = new cuerpo(this.x, this.y);
     }
     else
     {
         siguiente.agregar();
     }
 }
Example #3
0
 public void gameOver()
 {
     puntaje.Text = "0";
     puntos       = 0;
     xMov         = true;
     yMov         = true;
     xDirection   = 10;
     yDirection   = 0;
     cabeza       = new cuerpo(10, 10);
     comida       = new Comida();
     inicio();
 }
 public cuerpo(int x, int y)
 {
     this.x    = x;
     this.y    = y;
     siguiente = null;
 }