Пример #1
0
 /// <summary>
 /// Create a new Particle.
 /// </summary>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="texture"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 public Particle(float x, float y, AtlasTexture texture, int width = 0, int height = 0)
     : base(x, y)
 {
     Image = new ImageSet(texture, width, height);
 }
Пример #2
0
 /// <summary>
 /// Create a new Particle.
 /// </summary>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="ImageSet">The ImageSet to use for the Particle.</param>
 public Particle(float x, float y, ImageSet imageSet)
     : base(x, y)
 {
     Image = imageSet;
 }
Пример #3
0
 /// <summary>
 /// Create a new Particle.
 /// </summary>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="source">The source file path of the ImageSet.</param>
 /// <param name="width">The width of the ImageSet cell.</param>
 /// <param name="height">The height of the ImageSet cell.</param>
 public Particle(float x, float y, string source = null, int width = 0, int height = 0)
     : base(x, y)
 {
     Image = new ImageSet(source, width, height);
 }