add bit of random to the confetti

This commit is contained in:
Jeff Atwood 2016-09-21 15:29:04 -07:00 committed by Robin Ward
parent 3b7033f4e4
commit 3f09ef70eb
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Particle {
this.ang = 0;
}
this.x = this.origX + (this.radius * Math.sin(this.ang));
this.x = this.origX + (this.radius * Math.sin(this.ang)) + Math.floor(Math.random() * 3);
}
}