protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.smoke; settings.MaxParticles = 40000; settings.Duration = TimeSpan.FromSeconds(4.0f); settings.DurationRandomness = 2.0f; settings.EmitterVelocitySensitivity = 0.05f; settings.MinHorizontalVelocity = -0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = -0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(64, 64, 64, 255); settings.MaxColor = new Color(128, 128, 128, 255); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 0.1f; settings.MaxStartSize = 0.3f; settings.MinEndSize = 0.5f; settings.MaxEndSize = 0.8f; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.smoke; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(2); settings.DurationRandomness = 0.5f; settings.EmitterVelocitySensitivity = 4.0f; settings.MinHorizontalVelocity = 0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = 0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(48, 48, 48, 128); settings.MaxColor = new Color(96, 96, 96, 128); settings.MinRotateSpeed = 0; settings.MaxRotateSpeed = 0; settings.MinStartSize = 2f; settings.MaxStartSize = 3f; settings.MinEndSize = 0; settings.MaxEndSize = 0; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "SmokeTexture"; settings.MaxParticles = 4000; settings.Duration = TimeSpan.FromSeconds(10); settings.DurationRandomness = 3.0f; settings.EmitterVelocitySensitivity = 0.1f; settings.MinHorizontalVelocity = -0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = -0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(64, 64, 64, 192); settings.MaxColor = new Color(128, 128, 128, 192); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 0.4f; settings.MaxStartSize = 0.88f; settings.MinEndSize = 0.88f; settings.MaxEndSize = 1.2f; settings.MinPositionOffset = -1; settings.MaxPositionOffset = 1; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.explosion; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(5); settings.DurationRandomness = 4.0f; settings.EmitterVelocitySensitivity = -0.2f; settings.MinHorizontalVelocity = -0.2f; settings.MaxHorizontalVelocity = 0.2f; settings.MinVerticalVelocity = -0.2f; settings.MaxVerticalVelocity = 0.2f; settings.MinColor = new Color(255, 90, 0, 255); settings.MaxColor = new Color(255, 255, 0, 255); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 1.5f; settings.MaxStartSize = 2.5f; settings.MinEndSize = 4.0f; settings.MaxEndSize = 6.0f; settings.MinPositionOffset = 0f; settings.MaxPositionOffset = 0f; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "ParticleTexture"; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(4); settings.DurationRandomness = 1.0f; settings.EmitterVelocitySensitivity = 0.01f; settings.MinHorizontalVelocity = -4f; settings.MaxHorizontalVelocity = 4f; settings.MinVerticalVelocity = -4f; settings.MaxVerticalVelocity = 4f; settings.MinColor = new Color(255, 255, 0, 255); settings.MaxColor = new Color(255, 128, 0, 255); settings.MinRotateSpeed = 0; settings.MaxRotateSpeed = 0; settings.MinStartSize = 0.125f; settings.MaxStartSize = 0.25f; settings.MinEndSize = 0.25f; settings.MaxEndSize = .50f; settings.MinPositionOffset = -1; settings.MaxPositionOffset = 1; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.sparkGroup; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(4.0f); settings.DurationRandomness = 1.0f; settings.EmitterVelocitySensitivity = 0.1f; settings.MinHorizontalVelocity = -0.7f; settings.MaxHorizontalVelocity = 0.7f; settings.MinVerticalVelocity = -0.7f; settings.MaxVerticalVelocity = 0.7f; settings.MinColor = new Color(80, 160, 255, 255); settings.MaxColor = new Color(255, 255, 255, 255); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 0.7f; settings.MaxStartSize = 1.3f; settings.MinEndSize = 0; settings.MaxEndSize = 0; settings.MinPositionOffset = -0.2f; settings.MaxPositionOffset = 0.2f; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.debris1; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(4); settings.DurationRandomness = 2.0f; settings.EmitterVelocitySensitivity = -3.0f; settings.MinHorizontalVelocity = -0.4f; settings.MaxHorizontalVelocity = 0.4f; settings.MinVerticalVelocity = -0.4f; settings.MaxVerticalVelocity = 0.4f; settings.MinColor = new Color(0, 0, 0); settings.MaxColor = new Color(64, 64, 64); settings.MinRotateSpeed = -2.0f; settings.MaxRotateSpeed = 2.0f; settings.MinStartSize = 1.0f; settings.MaxStartSize = 4.0f; settings.MinEndSize = 0; settings.MaxEndSize = 0; settings.MinPositionOffset = -0.1f; settings.MaxPositionOffset = 0.1f; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.smoke; settings.MaxParticles = 40000; settings.Duration = TimeSpan.FromSeconds(1.0f); settings.DurationRandomness = 0.3f; settings.EmitterVelocitySensitivity = 0.1f; settings.MinHorizontalVelocity = 0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = 0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(90, 190, 140, 160); settings.MaxColor = new Color(0, 255, 130, 160); settings.MinRotateSpeed = 0; settings.MaxRotateSpeed = 0; settings.MinStartSize = 0.3f; settings.MaxStartSize = 0.6f; settings.MinEndSize = 0.0f; settings.MaxEndSize = 0.0f; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; }
//This is the One-Frame "flash" spark that flicks on. protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.bigglow; settings.MaxParticles = 64; settings.Duration = TimeSpan.FromSeconds(5); settings.DurationRandomness = 2.0f; settings.EmitterVelocitySensitivity = 0; settings.MinHorizontalVelocity = 0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = 0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(255, 160, 0, 80); settings.MaxColor = new Color(255, 160, 0, 80); settings.MinRotateSpeed = 0; settings.MaxRotateSpeed = 0; settings.MinStartSize = 1f; settings.MaxStartSize = 1f; settings.MinEndSize = 100.0f; settings.MaxEndSize = 100.0f; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.muzzleflash; settings.MaxParticles = 512; settings.Duration = TimeSpan.FromSeconds(0.15f); settings.DurationRandomness = 0.05f; settings.EmitterVelocitySensitivity = 4f; settings.MinHorizontalVelocity = 0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = 0; settings.MaxVerticalVelocity = 0; settings.MinColor = new Color(255, 160, 0, 255); settings.MaxColor = new Color(255, 255, 255, 255); settings.MinRotateSpeed = -8.0f; settings.MaxRotateSpeed = 8.0f; settings.MinStartSize = 3; settings.MaxStartSize = 4; settings.MinEndSize = 0.5f; settings.MaxEndSize = 1.5f; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.smoke; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(12f); settings.DurationRandomness = 1f; settings.MinHorizontalVelocity = 0; settings.MaxHorizontalVelocity = 0; settings.MinVerticalVelocity = 0; settings.MaxVerticalVelocity = 0; settings.EmitterVelocitySensitivity = 9.0f; settings.EndVelocity = 0.5f; settings.MinColor = new Color(255, 160, 0, 128); settings.MaxColor = new Color(255, 255, 0, 128); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 2; settings.MaxStartSize = 4; settings.MinEndSize = 27; settings.MaxEndSize = 29; settings.MinPositionOffset = 0; settings.MaxPositionOffset = 0; // Use additive blending. //settings.SourceBlend = Blend.SourceAlpha; //settings.DestinationBlend = Blend.InverseSourceAlpha; }
//this is the SPARKS. bad naming! protected override void InitializeSettings(ParticleSettings settings) { int rand = FrameworkCore.r.Next(3); settings.TextureName = ParticleTexture.arc1; settings.MaxParticles = 2000; settings.Duration = TimeSpan.FromSeconds(0.15f); settings.DurationRandomness = 0; settings.EmitterVelocitySensitivity = 0.3f; settings.MinHorizontalVelocity = -8; settings.MaxHorizontalVelocity = 8; settings.MinVerticalVelocity = -8; settings.MaxVerticalVelocity = 8; settings.MinColor = new Color(110, 170, 255, 255); settings.MaxColor = new Color(255, 255, 255, 255); settings.MinRotateSpeed = -12f; settings.MaxRotateSpeed = 12f; settings.MinStartSize = 3f; settings.MaxStartSize = 2f; settings.MinEndSize = 2f; settings.MaxEndSize = 2f; settings.MinPositionOffset = -1.5f; settings.MaxPositionOffset = 1.5f; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "SmokeTexture"; settings.MaxParticles = 1000; settings.Duration = TimeSpan.FromSeconds(2); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = -3; settings.MaxHorizontalVelocity = 3; settings.MinVerticalVelocity = -3; settings.MaxVerticalVelocity = 3; settings.EndVelocity = 1; settings.MinColor = new Color(128, 64, 32); settings.MaxColor = new Color(255, 128, 64); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 4; settings.MaxStartSize = 6; settings.MinEndSize = 6; settings.MaxEndSize = 8; settings.MinPositionOffset = -1.5f; settings.MaxPositionOffset = 1.5f; // Use additive blending. settings.SourceBlend = Blend.SourceAlpha; settings.DestinationBlend = Blend.InverseSourceAlpha; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = ParticleTexture.smoke; settings.MaxParticles = 1000; settings.Duration = TimeSpan.FromSeconds(3); settings.DurationRandomness = 1; settings.MinHorizontalVelocity = -2; settings.MaxHorizontalVelocity = 2; settings.MinVerticalVelocity = -2; settings.MaxVerticalVelocity = 2; settings.EndVelocity = 2; settings.MinColor = new Color(16, 16, 16, 192); settings.MaxColor = new Color(160, 160, 160, 192); settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 6; settings.MaxStartSize = 8; settings.MinEndSize = 8; settings.MaxEndSize = 12; settings.MinPositionOffset = -2; settings.MaxPositionOffset = 2; // Use alpha blending. settings.SourceBlend = Blend.SourceAlpha; settings.DestinationBlend = Blend.InverseSourceAlpha; }
/// <summary> /// Derived particle system classes should override this method /// and use it to initalize their tweakable settings. /// </summary> protected abstract void InitializeSettings(ParticleSettings settings);