예제 #1
0
 public void dibujar(Graphics g)
 {
     if (siguiente != null)
     {
         siguiente.dibujar(g);
     }
     g.FillRectangle(new SolidBrush(Color.Blue), this.x, this.y, this.espacio, this.espacio);
 }
예제 #2
0
 public void dibujar()
 {
     juego.Clear(Color.White);
     cabeza.dibujar(juego);
     comida.dibujar(juego);
 }