Ejemplo n.º 1
0
        void AddPart()
        {
            FBody b1 = new FBody(last);

            grid.Children.Add(b1);
            q1.Add(b1);
            last = b1;
        }
Ejemplo n.º 2
0
        void StartNewGame()
        {
            h1     = new FHead();                                 //создаём голову
            h1.dir = "up";
            grid.Children.Add(h1);
            Grid.SetColumn(h1, 10);
            Grid.SetRow(h1, 10);
            h1.Background = new SolidColorBrush(Color.FromRgb(0, 0, 0));
            last          = h1;


            AddPart();                                           //добавляем части тела
            AddPart();
            AddPart();


            FoodEaten();
            timer.Start();
        }
Ejemplo n.º 3
0
 public FBody(FPart a)
 {
     prnt = a;
 }
Ejemplo n.º 4
0
 public FBody()
 {
     prnt = null;
 }