public ParticleEmitter(TextureRegion textureRegion, ParticleEmitterParameters parameters)
            : base(textureRegion)
        {
            _randomizer = new RangeRandom();
            _particles  = new List <Particle>();

            TextureRegion = textureRegion;
            Parameters    = parameters;
            Profile       = new PointParticleEmitterProfile();
            Modifiers     = new List <ParticleModifier>();
            AutoEmit      = true;
            AutoEmitDelay = 0.1f;
        }
Beispiel #2
0
 public abstract Vector2 GetHeading(RangeRandom randomizer);
Beispiel #3
0
 public abstract Vector2 GetOffset(RangeRandom randomizer);
Beispiel #4
0
 public override Vector2 GetHeading(RangeRandom randomizer)
 {
     return(randomizer.GetUnitVector());
 }
Beispiel #5
0
 public override Vector2 GetOffset(RangeRandom randomizer)
 {
     return(Vector2.Zero);
 }
Beispiel #6
0
 public override Vector2 GetHeading(RangeRandom randomizer)
 {
     return(Heading);
 }