protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "Particulas//DarkSmoke";

            settings.MaxParticles = 800;

            settings.Duration = TimeSpan.FromSeconds(4);

            settings.MinHorizontalVelocity = 0;
            settings.MaxHorizontalVelocity = 50;

            settings.MinVerticalVelocity = -10;
            settings.MaxVerticalVelocity = 50;

            settings.Gravity = new Vector3(0, 0, 30);

            settings.EndVelocity = 0;

            settings.MinColor = Color.DarkGray;
            settings.MaxColor = Color.Gray;

            settings.MinRotateSpeed = -2;
            settings.MaxRotateSpeed = 2;

            settings.MinStartSize = 80;
            settings.MaxStartSize = 60;

            settings.MinEndSize = 100;
            settings.MaxEndSize = 120;
        }
        protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "Particulas//nieve";

            settings.MaxParticles = 200;

            settings.Duration = TimeSpan.FromSeconds(3);
            settings.DurationRandomness = 0;

            settings.MinHorizontalVelocity = 0.3f;
            settings.MaxHorizontalVelocity = 0.6f;

            settings.MinVerticalVelocity = -1;
            settings.MaxVerticalVelocity = -6;

            settings.Gravity = -Vector3.Up;

            settings.EndVelocity = 3;

            settings.MinColor = new Color(100, 100, 170);
            settings.MaxColor = new Color(128, 128, 190);

            settings.MinRotateSpeed = 0;
            settings.MaxRotateSpeed = 0;

            settings.MinStartSize = 0.3f;
            settings.MaxStartSize = 0.3f;

            settings.MinEndSize = 0.3f;
            settings.MaxEndSize = 0.3f;
        }
        protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "Particulas//splash";

            settings.MaxParticles = 30;

            settings.Duration = TimeSpan.FromSeconds(4.5f);
            settings.DurationRandomness = 0;

            settings.MinHorizontalVelocity = 0.1f;
            settings.MaxHorizontalVelocity = 0.5f;

            settings.MinVerticalVelocity = -0.2f;
            settings.MaxVerticalVelocity = 0.3f;

            settings.Gravity = Vector3.Down;

            settings.EndVelocity = 0.1f;

            settings.MinColor = new Color(100, 100, 170);
            settings.MaxColor = new Color(128, 128, 190);

            settings.MinRotateSpeed = -0.3f;
            settings.MaxRotateSpeed = 0.7f;

            settings.MinStartSize = 20f;
            settings.MaxStartSize = 50f;

            settings.MinEndSize = 70f;
            settings.MaxEndSize = 100f;
        }
        protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "Particulas//smoke";

            settings.MaxParticles = 500;

            settings.Duration = TimeSpan.FromSeconds(0.5f);
            settings.DurationRandomness = 0;

            settings.MinStartSize = 2;
            settings.MaxStartSize = 2;

            settings.MinEndSize = 0;
            settings.MaxEndSize = 0;

            // Use additive blending.
            settings.SourceBlend = Blend.SourceAlpha;
            settings.DestinationBlend = Blend.One;
        }
Exemplo n.º 5
0
 /// <summary>
 /// Derived particle system classes should override this method
 /// and use it to initalize their tweakable settings.
 /// </summary>
 protected abstract void InitializeSettings(ParticleSettings settings);