Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 3, 2014 22:24
Show Gist options
  • Save veeneck/9964090 to your computer and use it in GitHub Desktop.
Save veeneck/9964090 to your computer and use it in GitHub Desktop.
Particle effects in Sprite Kit
NSString *burstPath = [[NSBundle mainBundle] pathForResource:@"Snow" ofType:@"sks"];
SKEmitterNode *burstEmitter = [NSKeyedUnarchiver unarchiveObjectWithFile:burstPath];
burstEmitter.position = CGPointMake(CGRectGetMidX(self.frame),
CGRectGetMidY(self.frame));
[self addChild:burstEmitter];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment