protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "puke"; settings.MaxParticles = 4000; settings.Duration = TimeSpan.FromSeconds(.25); settings.MinHorizontalVelocity = -25; settings.MaxHorizontalVelocity = 25; settings.MinVerticalVelocity = -25; settings.MaxVerticalVelocity = 25; settings.Gravity = new Vector3(0, -50, 0); settings.EndVelocity = 0; settings.MinRotateSpeed = -8; settings.MaxRotateSpeed = 8; settings.MinStartSize = 1; settings.MaxStartSize = 2; settings.MinEndSize = 4; settings.MaxEndSize = 4; settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "mist_white"; settings.MaxParticles = 200; settings.Duration = TimeSpan.FromSeconds(1.25); settings.StartColor = new Color(255, 204, 38f); settings.EndColor = new Color(255, 204, 38f); settings.StartColor = Color.Gold * .65f; settings.EndColor = Color.Gold * .65f; settings.MinVerticalVelocity = -10; settings.MaxVerticalVelocity = -15; settings.MinStartSize = 20; settings.MaxStartSize = 20; settings.MinEndSize = 20; settings.MaxEndSize = 20; settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "mist_white"; settings.MaxParticles = 100; settings.Duration = TimeSpan.FromSeconds(.65f); settings.StartColor = new Color(255, 204, 38f); settings.EndColor = new Color(255, 204, 38f); settings.MinHorizontalVelocity = 40; settings.MaxHorizontalVelocity = 60; settings.MinVerticalVelocity = -40; settings.MaxVerticalVelocity = 40; settings.EndVelocity = 0; settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 10; settings.MaxStartSize = 10; settings.MinEndSize = 30; settings.MaxEndSize = 30; // Use additive blending. settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "explosion_animated"; settings.framesPerSecond = 35; settings.totalFrames = 23; settings.SpriteDimensions = new Vector2(5, 5); settings.MaxParticles = 100; settings.Duration = TimeSpan.FromSeconds(.65); settings.MinHorizontalVelocity = 40; settings.MaxHorizontalVelocity = 60; settings.MinVerticalVelocity = -40; settings.MaxVerticalVelocity = 40; settings.EndVelocity = 0; settings.MinRotateSpeed = -1; settings.MaxRotateSpeed = 1; settings.MinStartSize = 10; settings.MaxStartSize = 10; settings.MinEndSize = 80; settings.MaxEndSize = 80; // Use additive blending. settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "mist_white"; settings.MaxParticles = 200; settings.Duration = TimeSpan.FromSeconds(1.25); settings.StartColor = new Color(255, 204, 38f); settings.EndColor = new Color(255, 204, 38f); settings.StartColor = Color.Gold * .65f; settings.EndColor= Color.Gold * .65f; settings.MinVerticalVelocity = -10; settings.MaxVerticalVelocity = -15; settings.MinStartSize = 20; settings.MaxStartSize = 20; settings.MinEndSize = 20; settings.MaxEndSize = 20; settings.BlendState = BlendState.Additive; }
protected override void InitializeSettings(ParticleSettings settings) { settings.TextureName = "smoke"; settings.MaxParticles = 500; settings.Duration = TimeSpan.FromSeconds(5); settings.MinVerticalVelocity = 5; settings.MaxVerticalVelocity = 10; settings.MinStartSize = 10; settings.MaxStartSize = 15; settings.MinEndSize = 55; settings.MaxEndSize = 70; 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);