public Floor()
        {
            gfx = new ImageSet(Assets.GFX_FLOOR, 32, 32);
            gfx.Repeat = true;
            Graphic = gfx;

            Layer = 20;
        }
Exemple #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;
 }
Exemple #3
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);
 }
Exemple #4
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);
 }
Exemple #5
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;
 }
Exemple #6
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);
 }
Exemple #7
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);
 }