Esempio n. 1
0
        protected override void InitializeSettings(ParticleSettings settings)
        {
            particleEmitter = new ParticleEmitter(this, 10, Vector3.Zero);

            settings.TextureName = "Textures/whiteParticle";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(4);

            settings.DurationRandomness = 1.5f;

            settings.EndVelocity = 2;

            settings.EmitterVelocitySensitivity = -0.1f;

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

            settings.Gravity = new Vector3(0, -13, 0);

            settings.MinColor = new Color(240, 240, 255);
            settings.MaxColor = new Color(240, 240, 255);

            settings.MinStartSize = 0.1f;
            settings.MaxStartSize = 0.2f;

            settings.MinEndSize = 0.2f;
            settings.MaxEndSize = 0.2f;
        }
Esempio n. 2
0
 protected abstract void InitializeSettings(ParticleSettings settings);