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); }
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); }