示例#1
0
 static Material()
 {
     Gold = new Material(0.1932f, Color.FromArgb(255, 215, 101));
     Iron = new Material(0.0787f, Color.FromArgb(96, 96, 94));
     Copper = new Material(0.0896f, Color.FromArgb(213, 152, 121));
     Silver = new Material(0.1049f, Color.FromArgb(189, 189, 189));
     Lead = new Material(0.1136f, Color.FromArgb(109, 128, 134));
     materials = new List<Material>();
     materials.Add(Gold);
     materials.Add(Iron);
     materials.Add(Copper);
     materials.Add(Silver);
     materials.Add(Lead);
 }
示例#2
0
 public Object(Image image, Material material, float X, float Y, Rectangle bounds)
 {
     this.Image = image;
     this.X = X;
     this.Y = Y;
     this.bounds = bounds;
     this.imageSize = new Size(0, 0);
     this.Material = material;
     this.Volume = Image.Width;
     this.AngleInRadians = 0;
     this.Speed = new Vector(0, this.AngleInRadians);
     this.InitalSpeed = new Vector(0, this.AngleInRadians);
     this.Force = new Vector(0, this.AngleInRadians);
     this.Acceleration = new Vector(0, this.AngleInRadians);
 }