protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "smoke"; settings.MaxParticles = 20; settings.Duration = TimeSpan.FromSeconds(2f); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = 400; settings.MaxHorizontalVelocity = 400; settings.MinVerticalVelocity = -400; settings.MaxVerticalVelocity = 400; settings.EndVelocity = 0; settings.Gravity = Vector3.Zero; settings.MinColor = Color.White; settings.MaxColor = Color.White; settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 300; settings.MaxStartSize = 300; settings.MinEndSize = 1500; settings.MaxEndSize = 1500; //Use additive blending. //settings.BlendState = BlendState }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "green_explosion"; settings.MaxParticles = 100; settings.Duration = TimeSpan.FromSeconds(0.75f); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = 200 / 2; settings.MaxHorizontalVelocity = 200 / 2; settings.MinVerticalVelocity = -200 / 2; settings.MaxVerticalVelocity = 200 / 2; settings.Gravity = Vector3.Zero; settings.EndVelocity = 0; settings.MinColor = Color.White; settings.MaxColor = Color.White; settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 70; settings.MaxStartSize = 70; settings.MinEndSize = 700 / 1f; settings.MaxEndSize = 1050 / 1f; // Use additive blending. settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "spark"; settings.MaxParticles = 100; settings.Duration = TimeSpan.FromSeconds(0.35f); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = 800; settings.MaxHorizontalVelocity = 1600; settings.MinVerticalVelocity = 300; settings.MaxVerticalVelocity = 1200; settings.Gravity = new Vector3(0, -100f, 0); settings.EndVelocity = 0; settings.MinColor = Color.White; settings.MaxColor = Color.White; settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 50; settings.MaxStartSize = 50; settings.MinEndSize = 140; settings.MaxEndSize = 200; // Use additive blending. settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "plasma_cloud"; settings.MaxParticles = 50; settings.Duration = TimeSpan.FromSeconds(0.35f); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = 200 / 30; settings.MaxHorizontalVelocity = 200 / 30; settings.MinVerticalVelocity = -200 / 30; settings.MaxVerticalVelocity = 200 / 30; settings.Gravity = Vector3.Zero; settings.EndVelocity = 0; settings.MinColor = Color.White; settings.MaxColor = Color.White; settings.MinRotateSpeed = -0.1f; settings.MaxRotateSpeed = 0.1f; settings.MinStartSize = 100; settings.MaxStartSize = 125; settings.MinEndSize = 125; settings.MaxEndSize = 200; // Use additive blending. settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "spark"; settings.MaxParticles = 10; settings.Duration = TimeSpan.FromSeconds(5); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = 200 / 3; settings.MaxHorizontalVelocity = 200 / 3; settings.MinVerticalVelocity = -200 / 3; settings.MaxVerticalVelocity = 200 / 3; settings.Gravity = Vector3.Zero; settings.EndVelocity = 0; settings.MinColor = Color.Aqua; settings.MaxColor = Color.Aqua; settings.MinRotateSpeed = -0.0f; settings.MaxRotateSpeed = 0.0f; float size = 1400; settings.MinStartSize = size; settings.MaxStartSize = size; settings.MinEndSize = size * 2; settings.MaxEndSize = size * 2; // Use additive blending. settings.BlendState = BlendState.Additive; }
/// <summary> /// Derived particle system classes should override this method /// and use it to initalize their tweakable settings. /// </summary> protected abstract void InitializeSettings(ParticleSettings settings);