Exemplo n.º 1
0
 protected override void Render(Graphics graphics)
 {
     lock (locker)
     {
         player.Render(graphics);
         foreach (var sk in aiSnakes)
         {
             sk.Render(graphics);
         }
         graphics.DrawEllipse(Pens.Green, (float)(cellPos.X - 5), (float)(cellPos.Y - 5), 10, 10);
         graphics.DrawRectangle(Pens.Brown, bound);
     }
 }