示例#1
0
        /// <summary>
        /// Inicializar
        /// </summary>
        /// <param name="settings">Parámetros</param>
        protected void InitializeSmokePlume(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/smoke";

            settings.MaxParticles = 5000;

            settings.Duration = TimeSpan.FromSeconds(10);

            settings.MinHorizontalVelocity = 0;
            settings.MaxHorizontalVelocity = 5;

            settings.MinVerticalVelocity = 10;
            settings.MaxVerticalVelocity = 20;

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

            settings.EndVelocity = 0.75f;

            settings.MinRotateSpeed = -1;
            settings.MaxRotateSpeed = 1;

            settings.MinStartSize = 5;
            settings.MaxStartSize = 10;

            settings.MinEndSize = 50;
            settings.MaxEndSize = 200;
        }
示例#2
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeProjectileTrail(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/smoke";

            settings.MaxParticles = 250;

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

            settings.DurationRandomness = 1.5f;

            settings.EmitterVelocitySensitivity = 0.1f;

            settings.MinHorizontalVelocity = -1;
            settings.MaxHorizontalVelocity = 1;

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

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

            settings.MinRotateSpeed = 1;
            settings.MaxRotateSpeed = 1;

            settings.MinStartSize = 0.5f;
            settings.MaxStartSize = 1f;

            settings.MinEndSize = 1f;
            settings.MaxEndSize = 2f;
        }
示例#3
0
        /// <summary>
        /// Humo de motor
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeSmokeEngine(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/smoke";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(1);

            settings.MinHorizontalVelocity = 0;
            settings.MaxHorizontalVelocity = 2;

            settings.MinVerticalVelocity = 0;
            settings.MaxVerticalVelocity = 2;

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

            settings.EndVelocity = 0.15f;

            settings.MinRotateSpeed = -1;
            settings.MaxRotateSpeed = 1;

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

            settings.MinEndSize = 2;
            settings.MaxEndSize = 4;
        }
示例#4
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializePlasmaEngine(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/fire";

            settings.MaxParticles = 500;

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

            settings.DurationRandomness = 0f;

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

            settings.MinVerticalVelocity = 0;
            settings.MaxVerticalVelocity = 0;

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

            settings.MinColor = Color.AliceBlue;
            settings.MaxColor = Color.LightBlue;

            settings.MinStartSize = 1f;
            settings.MaxStartSize = 1f;

            settings.MinEndSize = 0.1f;
            settings.MaxEndSize = 0.1f;

            settings.SourceBlend      = Blend.SourceAlpha;
            settings.DestinationBlend = Blend.One;
        }
示例#5
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeFire(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/fire";

            settings.MaxParticles = 500;

            settings.Duration = TimeSpan.FromSeconds(2);

            settings.DurationRandomness = 1;

            settings.MinHorizontalVelocity = 0;
            settings.MaxHorizontalVelocity = 15;

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

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

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

            settings.MinStartSize = 5;
            settings.MaxStartSize = 10;

            settings.MinEndSize = 10;
            settings.MaxEndSize = 40;

            settings.SourceBlend      = Blend.SourceAlpha;
            settings.DestinationBlend = Blend.One;
        }
示例#6
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeExplosionSmoke(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/smoke";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(4);

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

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

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

            settings.EndVelocity = 0;

            settings.MinColor = Color.LightGray;
            settings.MaxColor = Color.White;

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

            settings.MinStartSize = 10;
            settings.MaxStartSize = 10;

            settings.MinEndSize = 100;
            settings.MaxEndSize = 200;
        }
示例#7
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeExplosion(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/explosion";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(2);

            settings.DurationRandomness = 1;

            settings.MinHorizontalVelocity = 20;
            settings.MaxHorizontalVelocity = 30;

            settings.MinVerticalVelocity = -20;
            settings.MaxVerticalVelocity = 20;

            settings.EndVelocity = 0;

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

            settings.MinRotateSpeed = -1;
            settings.MaxRotateSpeed = 1;

            settings.MinStartSize = 10;
            settings.MaxStartSize = 10;

            settings.MinEndSize = 100;
            settings.MaxEndSize = 200;

            settings.SourceBlend      = Blend.SourceAlpha;
            settings.DestinationBlend = Blend.One;
        }
示例#8
0
        /// <summary>
        /// Inicializar el sistema de partículas
        /// </summary>
        /// <param name="settings">Propiedades</param>
        protected void InitializeDust(ParticleSettings settings)
        {
            settings.TextureName = "Content/Particles/smoke";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(1);

            settings.MinHorizontalVelocity = 0;
            settings.MaxHorizontalVelocity = 2;

            settings.MinVerticalVelocity = 0;
            settings.MaxVerticalVelocity = 2;

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

            settings.EndVelocity = 0.1f;

            settings.MinColor = Color.SandyBrown;
            settings.MaxColor = Color.SandyBrown;

            settings.MinRotateSpeed = -1;
            settings.MaxRotateSpeed = 1;

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

            settings.MinEndSize = 5;
            settings.MaxEndSize = 10;
        }