Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 3, 2014 22:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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