Skip to content

Instantly share code, notes, and snippets.

@Nub
Created October 30, 2011 18:14
Show Gist options
  • Select an option

  • Save Nub/1326211 to your computer and use it in GitHub Desktop.

Select an option

Save Nub/1326211 to your computer and use it in GitHub Desktop.
//maximumParticles = 250
_deadParticles = (NSInteger*)malloc(sizeof(NSInteger) * maximumParticles);
for (NSInteger i = 0; i < maximumParticles; i++) {//Cache all particles for speed
_deadParticles[i] = i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment