Ejemplo n.º 1
0
        public void CreateNova(Vector3 position)
        {
            for (int i = 0; i < 512; i++)
            {
                novaFire.AddParticle(position, Vector3.Zero);
            }

            for (int i = 0; i < 256; i++)
            {
                novaSparks.AddParticle(position, Vector3.Zero);
            }
        }
        //WHEN A SPACESHIP EXPLODES.
        public void CreateNova(Vector3 position, Vector3 velocity)
        {
            velocity.Normalize();
            CreateSmokeRing(position, velocity, novaSmoke, 128);

            novaGlow.AddParticle(position, Vector3.Zero);

            for (int i = 0; i < 8; i++)
            {
                novaFire.AddParticle(position, Vector3.Zero);
            }

            for (int i = 0; i < 16; i++)
            {
                novaSparks.AddParticle(position, Vector3.Zero);
            }
        }