Exemplo n.º 1
0
 void Stars()
 {
     mParticleSystem1 = new ParticleSystem(this, 10, Resource.Drawable.star, 3000);
     mParticleSystem1.SetSpeedByComponentsRange(-0.1f, 0.1f, -0.1f, 0.02f);
     mParticleSystem1.SetAcceleration(0.000003f, 90);
     mParticleSystem1.SetInitialRotationRange(0, 360);
     mParticleSystem1.SetRotationSpeed(120);
     mParticleSystem1.SetFadeOut(2000);
     mParticleSystem1.AddModifier(new ScaleModifier(0f, 1.5f, 0, 1500));
     mParticleSystem1.OneShot(mTextView, 10);
 }
Exemplo n.º 2
0
 void OneShotSimple()
 {
     mParticleSystem1 = new ParticleSystem(this, 50, Resource.Drawable.star_dark, 1000);
     mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
     mParticleSystem1.OneShot(mTextView, 100);
 }
Exemplo n.º 3
0
 void OneShotAdvanced()
 {
     mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 2000);
     mParticleSystem1.SetScaleRange(0.7f, 1.3f);
     mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
     mParticleSystem1.SetAcceleration(0.0001f, 90);
     mParticleSystem1.SetRotationSpeedRange(90, 180);
     mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
     mParticleSystem1.OneShot(mTextView, 100);
 }
Exemplo n.º 4
0
        void Fireworks()
        {
            mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.star_dark, 800);
            mParticleSystem1.SetScaleRange(0.7f, 1.3f);
            mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
            mParticleSystem1.SetRotationSpeedRange(90, 180);
            mParticleSystem1.SetFadeOut(200, new AccelerateInterpolator());
            mParticleSystem1.OneShot(mTextView, 70);

            mParticleSystem2 = new ParticleSystem(this, 100, Resource.Drawable.star_white, 800);
            mParticleSystem2.SetScaleRange(0.7f, 1.3f);
            mParticleSystem2.SetSpeedRange(0.1f, 0.25f);
            mParticleSystem2.SetRotationSpeedRange(90, 180);
            mParticleSystem2.SetFadeOut(200, new AccelerateInterpolator());
            mParticleSystem2.OneShot(mTextView, 70);
        }
Exemplo n.º 5
0
 void Dust()
 {
     mParticleSystem1 = new ParticleSystem(this, 4, Resource.Drawable.dust, 3000);
     mParticleSystem1.SetSpeedByComponentsRange(-0.025f, 0.025f, -0.06f, -0.08f);
     mParticleSystem1.SetAcceleration(0.00001f, 30);
     mParticleSystem1.SetInitialRotationRange(0, 360);
     mParticleSystem1.AddModifier(new AlphaModifier(255, 0, 1000, 3000));
     mParticleSystem1.AddModifier(new ScaleModifier(0.5f, 2f, 0, 1000));
     mParticleSystem1.OneShot(FindViewById(Resource.Id.emiter_bottom), 4);
 }
Exemplo n.º 6
0
 void AnimatedParticles()
 {
     mParticleSystem1 = new ParticleSystem(this, 100, Resource.Drawable.animated_confetti, 5000);
     mParticleSystem1.SetSpeedRange(0.1f, 0.25f);
     mParticleSystem1.SetRotationSpeedRange(90, 180);
     mParticleSystem1.SetInitialRotationRange(0, 360);
     mParticleSystem1.OneShot(mTextView, 100);
 }