Skip to content

Commit

Permalink
Merge pull request soulwire#88 from saschageyer/patch-1
Browse files Browse the repository at this point in the history
added "var particle, theta, force;" in demo.spawn function
  • Loading branch information
soulwire authored Oct 17, 2016
2 parents 21a58de + 544aff1 commit a68b947
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ <h3>Start drawing!</h3>
};

demo.spawn = function( x, y ) {

var particle, theta, force;

if ( particles.length >= MAX_PARTICLES )
pool.push( particles.shift() );
Expand Down

0 comments on commit a68b947

Please sign in to comment.