Skip to content

Instantly share code, notes, and snippets.

@joshontheweb
Created November 16, 2012 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshontheweb/4091035 to your computer and use it in GitHub Desktop.
Save joshontheweb/4091035 to your computer and use it in GitHub Desktop.
Javascript Particle System Init
// wrap canvas with Display and initialize
var display = new Display(this.canvas);
display.init();
// Initialize ParticleSystem and init with display
var particleSystem = new ParticleSystem().init(display);
// set an upper limit for total number of particles
particleSystem.maxParticles = 10000;
// start
display.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment