示例#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
文件: Form1.cs 项目: LOSanchez/Snake
 public void dibujar()
 {
     juego.Clear(Color.White);
     cabeza.dibujar(juego);
     comida.dibujar(juego);
 }