Exemplo n.º 1
0
        public Floor()
        {
            gfx = new ImageSet(Assets.GFX_FLOOR, 32, 32);
            gfx.Repeat = true;
            Graphic = gfx;

            Layer = 20;
        }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }