Beispiel #1
0
        public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position, Color color)
            : base(engine, position)
        {
            this.sprite = sprite;
            this.color = color;

            origin = Resources.GetSpriteCenter(sprite);
        }
Beispiel #2
0
        public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position, Color color)
            : base(engine, position)
        {
            this.sprite = sprite;
            this.color  = color;

            origin = Resources.GetSpriteCenter(sprite);
        }
Beispiel #3
0
 public ConstantForceMethod(ParticleEngine engine, Vector2 force)
     : base(engine)
 {
     this.force = force;
 }
Beispiel #4
0
 public ScaleMethod(ParticleEngine engine, float startScale, float endScale)
     : base(engine)
 {
     this.startScale = startScale;
     this.endScale   = endScale;
 }
Beispiel #5
0
 public FadeInOutMethod(ParticleEngine engine) : base(engine)
 {
 }
Beispiel #6
0
 public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position)
     : this(engine, sprite, position, Color.White)
 {
 }
Beispiel #7
0
 public Particle(ParticleEngine engine, Vector2 position, float lifeLength)
 {
     this.engine = engine;
     this.position = position;
 }
Beispiel #8
0
 public EmitterParticle(ParticleEngine engine, Vector2 position, ParticleEmitter pe)
     : base(engine, position)
 {
     this.pe = pe;
 }
Beispiel #9
0
 public ParticleMethod(ParticleEngine engine)
 {
     this.engine = engine;
 }
Beispiel #10
0
 public ParticleMethod(ParticleEngine engine)
 {
     this.engine = engine;
 }
Beispiel #11
0
 public FadeInOutMethod(ParticleEngine engine)
     : base(engine)
 {
 }
Beispiel #12
0
 public Particle(ParticleEngine engine, Vector2 position, float lifeLength)
 {
     this.engine   = engine;
     this.position = position;
 }
Beispiel #13
0
 public Particle(ParticleEngine engine, Vector2 position)
     : this(engine, position, -1)
 {
 }
Beispiel #14
0
 public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position)
     : this(engine, sprite, position, Color.White)
 {
 }
Beispiel #15
0
 public ScaleMethod(ParticleEngine engine, float startScale, float endScale)
     : base(engine)
 {
     this.startScale = startScale;
     this.endScale = endScale;
 }
Beispiel #16
0
 public PointForceMethod(ParticleEngine engine, Vector2 point, float strength)
     : base(engine)
 {
     this.point    = point;
     this.strength = strength;
 }
Beispiel #17
0
 public PointForceMethod(ParticleEngine engine, Vector2 point, float strength)
     : base(engine)
 {
     this.point = point;
     this.strength = strength;
 }
Beispiel #18
0
 public EmitterParticle(ParticleEngine engine, Vector2 position, ParticleEmitter pe)
     : base(engine, position)
 {
     this.pe = pe;
 }
Beispiel #19
0
 public ConstantForceMethod(ParticleEngine engine, Vector2 force)
     : base(engine)
 {
     this.force = force;
 }
Beispiel #20
0
 public Particle(ParticleEngine engine, Vector2 position)
     : this(engine, position, -1)
 {
 }