Exemplo n.º 1
0
        public override void OnEnter()
        {
            base.OnEnter();

            m_emitter = new CCParticleFireworks();
            m_background.AddChild(m_emitter, 10);

            m_emitter.Texture = CCTextureCache.SharedTextureCache.AddImage(TestResource.s_stars1);

            setEmitterPosition();
        }
Exemplo n.º 2
0
		void Jump ()
		{
			bird_vel.Y = 400.0f + Math.Abs(bird_vel.X);

			var old_part = GetChildByTag((int)Tags.Particles);
			if (old_part!=null)
				RemoveChild(old_part,true);

			var particle = new CCParticleFireworks();
			particle.Position = bird_pos;
			particle.Gravity = new CCPoint(0,-5000);
			particle.Duration = .3f;
			AddChild(particle,-1,(int)Tags.Particles);
		}