Created
November 16, 2012 21:21
-
-
Save joshontheweb/4091035 to your computer and use it in GitHub Desktop.
Javascript Particle System Init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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