protected override void EmitParticle() { var particle = new Particle(Texture); particle.Lifetime = TimeSpan.FromMilliseconds(2550); particle.Position = new Vector2(50, 50); particle.Velocity = new Vector2(0, yVelocity); particle.DrawColor = Color.White; ParticleEngine.Instance.Add(particle); }
protected override void EmitParticle() { var particle = new Particle(); particle.Lifetime = TimeSpan.FromMilliseconds(300); particle.Position = GetEmitPosition(); particle.Velocity = GetEmitVelocity(); particle.DrawColor = new Color(Color.WhiteSmoke, GetAlpha()); var withVariableSize = new VariableSizeDecorator(particle, 2, 10); ParticleEngine.Instance.Add(withVariableSize); }
protected override void EmitParticle() { var particle = new Particle(); particle.Lifetime = TimeSpan.FromMilliseconds(2550); particle.Position = GetEmitPosition(); particle.Velocity = GetVelocity(); particle.DrawColor = GetColor(); var withDelayedStart = new DelayedStartDecorator(particle); var withVariableSize = new VariableSizeDecorator(withDelayedStart, 1, 7); ParticleEngine.Instance.Add(withVariableSize); }