title: cocas2d particles in background
body: <p>I have a particle system up and running on my iphone simulator, however there is one issue. I am creating a card game and wish to have the particle effect under the cards, currently the particles are overlapping and going over the cards on display which does not look so great.
  How do i achieve the desired effect?</p>
  
  <p>here is my code in the init section</p>
  
  <pre><code>- (id)init {
      if((self = [super init])) {         
          CGSize winSize = [CCDirector sharedDirector].winSize;
  
          **[self configureEmitter];**    
  
          [CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_RGB565];
          background = [CCSprite spriteWithFile:@"myBackground.png"];
          background.anchorPoint = ccp(0,0);
          [self addChild:background];
          [CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_Default];    
      }
      [[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
      return self;
  }
  
  - (void)configureEmitter {
      self.emitter = [[CCParticleSystemQuad alloc] initWithTotalParticles:100];
      self.emitter.texture = [[CCTextureCache sharedTextureCache] addImage: @"particlespng"];
      [self.emitter setEmitterMode:kCCParticleModeGravity];   
      emitter.duration = -1;
      emitter.gravity = ccp(-200, -80);
  }
  </code></pre>