Esempio n. 1
0
        public void BodyIcrease(int X_value, int Y_value)
        {
            Point_normal body_point = new Point_normal()
            {
                X_value = X_value, Y_value = Y_value, Color = Color, Height = Radius
            };

            Body.Add(body_point);
        }
Esempio n. 2
0
        public Snake(int X_start, int Y_start, int Radius)
        {
            this.Radius  = Radius;
            this.X_start = X_start;
            this.Y_start = Y_start;

            Point_normal head = new Point_normal()
            {
                X_value = X_start, Y_value = Y_start, Color = Brushes.Blue, Height = Radius
            };

            Body.Add(head);
        }